1

Temat: WL-500gP i modem ethernet

Cześć! Kupiłem sobie gateway Linksys ADSL2MU za 20zł smile Działa, ja podepnie się go do komputera. Tylko jak to teraz skonfigurować z routerem? Kabel ethernet wpinam do portu WAN w moim wl-500gp, ale co dalej wpisac w plik network to nie wiem.

IP gateway: 192.168.1.2, brak serwera DHCP(chodź mogę włączyć)
IP routera: 192.168.1.1, DHCP dla LAN od IP ...100 - ...255
Openwrt: najnowsze smile

2

Odp: WL-500gP i modem ethernet

Ustaw modem w tryb bridge, na asusie pppoe. Gorsze rozwiązanie - modem niech przydziela adres, a asus przez dhcp, czyli standardowa konfiguracja.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: WL-500gP i modem ethernet

"Ustaw modem w tryb bridge, na asusie pppoe." - Nie mam możliwości ustawić modemu w trybie bridge, albo tego nie widzę.
"modem niech przydziela adres, a asus przez dhcp, czyli standardowa konfiguracja" - możesz podać gotową konfigurację? Próbowałem chyba z 15 razy i żadna mi nie zaskoczyła, najnowsza to:

config 'switch' 'eth0'
        option 'enable' '1'

config 'switch_vlan' 'eth0_0'
        option 'device' 'eth0'
        option 'vlan' '0'
        option 'ports' '1 2 3 4 5'

config 'switch_vlan' 'eth0_1'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'proto' 'static'
        option 'ifname' 'eth0.0'
        option 'ipaddr' '192.168.1.3'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.1.2'

A w poprzednich wersjach były chyba wszystkie możliwe wariacje z opcją ifname. Co do DHCP - zauważyłem że po prostu lepiej działa na statycznym, ale jak napiszesz konfigurację pod DHCP która działa to nie pogardzę

4

Odp: WL-500gP i modem ethernet

config 'interface' 'wan'
        option 'proto' 'dhcp'
        option 'ifname' 'eth0.0'

smile

A tak ot: wan nie może mieć tej samej klasy adresowej do lan. Więc jak już ustawiełeś na wan 192.168..1.3 yo przestaw lan na 192.168.2.1

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: WL-500gP i modem ethernet

Ok, tylko mały problem... Gdy przestawiłem lan na 192.168.2.1 to nie mogę się dostukać do routera...

6

Odp: WL-500gP i modem ethernet

Oczywiście odświeżyłeś dzierżawę adresu komputera? Bo powinien dostać coś z 192.168.2.x...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez WMP 2010-07-24 22:51:10)

Odp: WL-500gP i modem ethernet

Dostałem, 192.168.2.197


Dowiedziałem się, że router nasłuchuje na WAN i na LAN, więc na 192.168.1.1 i na 192.168.2.1 wink Wiec teraz tylko zrobić modem.

Edit 2:
Wpisałem to co mówiłeś, włączyłem dhcp na modemie,  sieci nie było..., oto logi jakie zebrałem specjalnie dla ciebie:

root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network is unreachable
root@OpenWrt:~# ping 8.8.4.4
PING 8.8.4.4 (8.8.4.4): 56 data bytes
ping: sendto: Network is unreachable
root@OpenWrt:~# ping google.com
ping: bad address 'google.com'
root@OpenWrt:~# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes
ping: sendto: Network is unreachable
root@OpenWrt:~# logread
Jul 24 20:24:00 OpenWrt user.info kernel: TCP established hash table entries: 1024 (order: 1, 8192 bytes)
Jul 24 20:24:00 OpenWrt user.info kernel: TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
Jul 24 20:24:00 OpenWrt user.info kernel: TCP: Hash tables configured (established 1024 bind 1024)
Jul 24 20:24:00 OpenWrt user.info kernel: TCP reno registered
Jul 24 20:24:00 OpenWrt user.info kernel: NET: Registered protocol family 1
Jul 24 20:24:00 OpenWrt user.info kernel: squashfs: version 4.0 (2009/01/31) Phillip Lougher
Jul 24 20:24:00 OpenWrt user.warn kernel: Registering mini_fo version $Id$
Jul 24 20:24:00 OpenWrt user.info kernel: JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
Jul 24 20:24:00 OpenWrt user.info kernel: msgmni has been set to 57
Jul 24 20:24:00 OpenWrt user.info kernel: io scheduler noop registered
Jul 24 20:24:00 OpenWrt user.info kernel: io scheduler deadline registered (default)
Jul 24 20:24:00 OpenWrt user.info kernel: Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
Jul 24 20:24:00 OpenWrt user.info kernel: serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
Jul 24 20:24:00 OpenWrt user.info kernel: serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
Jul 24 20:24:00 OpenWrt user.info kernel: serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
Jul 24 20:24:00 OpenWrt user.info kernel: serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
Jul 24 20:24:00 OpenWrt user.warn kernel: flash init: 0x1c000000 0x02000000
Jul 24 20:24:00 OpenWrt user.info kernel: Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Jul 24 20:24:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Jul 24 20:24:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Jul 24 20:24:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Jul 24 20:24:00 OpenWrt user.warn kernel:  Amd/Fujitsu Extended Query Table at 0x0040
Jul 24 20:24:00 OpenWrt user.warn kernel: Physically mapped flash: CFI does not contain boot bank location. Assuming top.
Jul 24 20:24:00 OpenWrt user.notice kernel: number of CFI chips: 1
Jul 24 20:24:00 OpenWrt user.notice kernel: cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Jul 24 20:24:00 OpenWrt user.notice kernel: Flash device: 0x800000 at 0x1fc00000
Jul 24 20:24:00 OpenWrt user.notice kernel: bootloader size: 262144
Jul 24 20:24:00 OpenWrt user.notice kernel: Creating 4 MTD partitions on "Physically mapped flash":
Jul 24 20:24:00 OpenWrt user.notice kernel: 0x000000000000-0x000000040000 : "cfe"
Jul 24 20:24:00 OpenWrt user.notice kernel: 0x000000040000-0x0000007f0000 : "linux"
Jul 24 20:24:00 OpenWrt user.notice kernel: 0x00000011a400-0x0000007f0000 : "rootfs"
Jul 24 20:24:00 OpenWrt user.warn kernel: mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Jul 24 20:24:00 OpenWrt user.notice kernel: mtd: partition "rootfs" set to be root filesystem
Jul 24 20:24:00 OpenWrt user.info kernel: mtd: partition "rootfs_data" created automatically, ofs=370000, len=480000 
Jul 24 20:24:00 OpenWrt user.notice kernel: 0x000000370000-0x0000007f0000 : "rootfs_data"
Jul 24 20:24:00 OpenWrt user.notice kernel: 0x0000007f0000-0x000000800000 : "nvram"
Jul 24 20:24:00 OpenWrt user.info kernel: b44.c:v2.0
Jul 24 20:24:00 OpenWrt user.info kernel: eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:18:f3:ef:97:cd
Jul 24 20:24:00 OpenWrt user.err kernel: b44: eth1: PHY Reset would not complete.
Jul 24 20:24:00 OpenWrt user.info kernel: eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
Jul 24 20:24:00 OpenWrt user.info kernel: BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
Jul 24 20:24:00 OpenWrt user.info kernel: TCP westwood registered
Jul 24 20:24:00 OpenWrt user.info kernel: NET: Registered protocol family 17
Jul 24 20:24:00 OpenWrt user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Jul 24 20:24:00 OpenWrt user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
Jul 24 20:24:00 OpenWrt user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Jul 24 20:24:00 OpenWrt user.info kernel: Freeing unused kernel memory: 136k freed
Jul 24 20:24:00 OpenWrt user.warn kernel: Please be patient, while OpenWrt loads ...
Jul 24 20:24:00 OpenWrt user.warn kernel: diag: Detected 'ASUS WL-500g Premium'
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jul 24 20:24:00 OpenWrt user.info kernel: roboswitch: Probing device eth0: found a 5325! It's a 5350.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: powering down PHY
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: powering down PHY
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: powering down PHY
Jul 24 20:24:00 OpenWrt user.notice kernel: SCSI subsystem initialized
Jul 24 20:24:00 OpenWrt user.info kernel: usbcore: registered new interface driver usbfs
Jul 24 20:24:00 OpenWrt user.info kernel: usbcore: registered new interface driver hub
Jul 24 20:24:00 OpenWrt user.info kernel: usbcore: registered new device driver usb
Jul 24 20:24:00 OpenWrt user.info kernel: uhci_hcd: USB Universal Host Controller Interface driver
Jul 24 20:24:00 OpenWrt user.warn kernel: PCI: Enabling device 0000:00:03.0 (0000 -> 0001)
Jul 24 20:24:00 OpenWrt user.info kernel: PCI: Fixing up device 0000:00:03.0
Jul 24 20:24:00 OpenWrt user.info kernel: uhci_hcd 0000:00:03.0: UHCI Host Controller
Jul 24 20:24:00 OpenWrt user.info kernel: uhci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 1
Jul 24 20:24:00 OpenWrt user.info kernel: uhci_hcd 0000:00:03.0: irq 6, io base 0x00000400
Jul 24 20:24:00 OpenWrt user.info kernel: usb usb1: configuration #1 chosen from 1 choice
Jul 24 20:24:00 OpenWrt user.info kernel: hub 1-0:1.0: USB hub found
Jul 24 20:24:00 OpenWrt user.info kernel: hub 1-0:1.0: 2 ports detected
Jul 24 20:24:00 OpenWrt user.warn kernel: PCI: Enabling device 0000:00:03.1 (0000 -> 0001)
Jul 24 20:24:00 OpenWrt user.info kernel: PCI: Fixing up device 0000:00:03.1
Jul 24 20:24:00 OpenWrt user.info kernel: uhci_hcd 0000:00:03.1: UHCI Host Controller
Jul 24 20:24:00 OpenWrt user.info kernel: uhci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 2
Jul 24 20:24:00 OpenWrt user.info kernel: uhci_hcd 0000:00:03.1: irq 6, io base 0x00000420
Jul 24 20:24:00 OpenWrt user.info kernel: usb usb2: configuration #1 chosen from 1 choice
Jul 24 20:24:00 OpenWrt user.info kernel: hub 2-0:1.0: USB hub found
Jul 24 20:24:00 OpenWrt user.info kernel: hub 2-0:1.0: 2 ports detected
Jul 24 20:24:00 OpenWrt user.info kernel: Initializing USB Mass Storage driver...
Jul 24 20:24:00 OpenWrt user.info kernel: usbcore: registered new interface driver usb-storage
Jul 24 20:24:00 OpenWrt user.info kernel: USB Mass Storage support registered.
Jul 24 20:24:00 OpenWrt user.info kernel: usb 1-2: new full speed USB device using uhci_hcd and address 2
Jul 24 20:24:00 OpenWrt user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Jul 24 20:24:00 OpenWrt user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jul 24 20:24:00 OpenWrt user.debug kernel: usb-storage: device found at 2
Jul 24 20:24:00 OpenWrt user.debug kernel: usb-storage: waiting for device to settle before scanning
Jul 24 20:24:00 OpenWrt user.notice kernel: scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
Jul 24 20:24:00 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] 15646656 512-byte logical blocks: (8.01 GB/7.45 GiB)
Jul 24 20:24:00 OpenWrt user.debug kernel: usb-storage: device scan complete
Jul 24 20:24:00 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] Write Protect is off
Jul 24 20:24:00 OpenWrt user.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 65 44 09 30
Jul 24 20:24:00 OpenWrt user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jul 24 20:24:00 OpenWrt user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jul 24 20:24:00 OpenWrt user.info kernel:  sda: sda1 sda2 sda3
Jul 24 20:24:00 OpenWrt user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jul 24 20:24:00 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
Jul 24 20:24:00 OpenWrt user.info kernel: kjournald starting.  Commit interval 5 seconds
Jul 24 20:24:00 OpenWrt user.warn kernel: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
Jul 24 20:24:00 OpenWrt user.info kernel: EXT3 FS on sda1, internal journal
Jul 24 20:24:00 OpenWrt user.info kernel: EXT3-fs: mounted filesystem with writeback data mode.
Jul 24 20:24:00 OpenWrt user.info kernel: mini_fo: using base directory: /
Jul 24 20:24:00 OpenWrt user.info kernel: mini_fo: using storage directory: /overlay
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: powering down PHY
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jul 24 20:24:00 OpenWrt user.info kernel: b44: eth0: powering down PHY
Jul 24 20:24:02 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jul 24 20:24:02 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jul 24 20:24:03 OpenWrt user.info kernel: device eth0.0 entered promiscuous mode
Jul 24 20:24:03 OpenWrt user.info kernel: device eth0 entered promiscuous mode
Jul 24 20:24:03 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering forwarding state
Jul 24 20:24:04 OpenWrt user.info kernel: Generic kernel compatibility enabled based on linux-next next-20100113
Jul 24 20:24:04 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jul 24 20:24:06 OpenWrt user.info kernel: NET: Registered protocol family 8
Jul 24 20:24:06 OpenWrt user.info kernel: NET: Registered protocol family 20
Jul 24 20:24:06 OpenWrt user.info kernel: cfg80211: World regulatory domain updated:
Jul 24 20:24:06 OpenWrt user.info kernel:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jul 24 20:24:06 OpenWrt user.info kernel:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jul 24 20:24:06 OpenWrt user.info kernel:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jul 24 20:24:06 OpenWrt user.info kernel:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jul 24 20:24:06 OpenWrt user.info kernel:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jul 24 20:24:06 OpenWrt user.info kernel:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jul 24 20:24:07 OpenWrt user.info kernel: b43-phy0: Broadcom 4318 WLAN found (core revision 9)
Jul 24 20:24:07 OpenWrt user.debug kernel: phy0: Selected rate control algorithm 'minstrel'
Jul 24 20:24:07 OpenWrt user.info kernel: Registered led device: b43-phy0::tx
Jul 24 20:24:07 OpenWrt user.info kernel: Registered led device: b43-phy0::rx
Jul 24 20:24:07 OpenWrt user.info kernel: Registered led device: b43-phy0::assoc
Jul 24 20:24:07 OpenWrt user.info kernel: Registered led device: b43-phy0::radio
Jul 24 20:24:07 OpenWrt user.info kernel: Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
Jul 24 20:24:07 OpenWrt user.info kernel: NTFS driver 2.1.29 [Flags: R/O MODULE].
Jul 24 20:24:08 OpenWrt user.info kernel: PPP generic driver version 2.4.2
Jul 24 20:24:08 OpenWrt user.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jul 24 20:24:09 OpenWrt user.info kernel: NET: Registered protocol family 24
Jul 24 20:24:09 OpenWrt user.warn kernel: nf_conntrack version 0.5.0 (463 buckets, 1852 max)
Jul 24 20:24:09 OpenWrt user.warn kernel: CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Jul 24 20:24:09 OpenWrt user.warn kernel: nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Jul 24 20:24:09 OpenWrt user.warn kernel: sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Jul 24 20:24:10 OpenWrt user.info kernel: usbcore: registered new interface driver usblp
Jul 24 20:24:11 OpenWrt user.info kernel: usbcore: registered new interface driver speedtch
Jul 24 20:24:11 OpenWrt user.info kernel: fuse init (API version 7.13)
Jul 24 20:24:11 OpenWrt user.warn kernel: fuse init: DCACHE_BUG enabled
Jul 24 20:24:13 OpenWrt user.info sysinit: Error for wireless request "Set Tx Power" (8B26) :
Jul 24 20:24:13 OpenWrt user.info sysinit:     SET failed on device wlan0 ; Invalid argument.
Jul 24 20:24:14 OpenWrt user.info kernel: b43 ssb1:0: firmware: requesting b43/ucode5.fw
Jul 24 20:24:14 OpenWrt user.info kernel: b43 ssb1:0: firmware: requesting b43/pcm5.fw
Jul 24 20:24:14 OpenWrt user.info kernel: b43 ssb1:0: firmware: requesting b43/b0g0initvals5.fw
Jul 24 20:24:14 OpenWrt user.info kernel: b43 ssb1:0: firmware: requesting b43/b0g0bsinitvals5.fw
Jul 24 20:24:14 OpenWrt user.info kernel: b43-phy0: Loading firmware version 478.104 (2008-07-01 00:50:23)
Jul 24 20:24:15 OpenWrt user.info kernel: device wlan0 entered promiscuous mode
Jul 24 20:24:15 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jul 24 20:24:17 OpenWrt user.info kernel: device wlan0 left promiscuous mode
Jul 24 20:24:17 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering disabled state
Jul 24 20:24:18 OpenWrt user.info kernel: device wlan0 entered promiscuous mode
Jul 24 20:24:18 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jul 24 20:24:18 OpenWrt user.info sysinit: Loading defaults
Jul 24 20:24:19 OpenWrt user.info sysinit: Loading synflood protection
Jul 24 20:24:19 OpenWrt user.info sysinit: Adding custom chains
Jul 24 20:24:20 OpenWrt user.info sysinit: Loading zones
Jul 24 20:24:20 OpenWrt user.info sysinit: Loading forwarding
Jul 24 20:24:20 OpenWrt user.info sysinit: Loading redirects
Jul 24 20:24:21 OpenWrt user.info sysinit: Loading rules
Jul 24 20:24:21 OpenWrt user.info sysinit: Loading includes
Jul 24 20:24:21 OpenWrt user.info sysinit: Loading zone defaults
Jul 24 20:24:21 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
Jul 24 20:24:22 OpenWrt authpriv.info dropbear[1018]: Running in background
Jul 24 20:24:23 OpenWrt user.info sysinit: WARNING: the specified certificate and key files do not exist and the px5g generator is not available, skipping SSL setup.
Jul 24 20:24:27 OpenWrt daemon.info dnsmasq[1054]: started, version 2.52 cachesize 150
Jul 24 20:24:27 OpenWrt daemon.info dnsmasq[1054]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jul 24 20:24:27 OpenWrt daemon.info dnsmasq-dhcp[1054]: DHCP, IP range 192.168.2.100 -- 192.168.2.250, lease time 12h
Jul 24 20:24:27 OpenWrt daemon.info dnsmasq[1054]: using local addresses only for domain lan
Jul 24 20:24:27 OpenWrt daemon.warn dnsmasq[1054]: no servers found in /tmp/resolv.conf.auto, will retry
Jul 24 20:24:27 OpenWrt daemon.info dnsmasq[1054]: read /etc/hosts - 1 addresses
Jul 24 20:24:27 OpenWrt daemon.info dnsmasq-dhcp[1054]: read /etc/ethers - 0 addresses
Jul 24 20:24:36 OpenWrt authpriv.info dropbear[1065]: Child connection from 192.168.2.197:53165
Jul 24 20:24:40 OpenWrt authpriv.notice dropbear[1065]: password auth succeeded for 'root' from 192.168.2.197:53165
root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
root@OpenWrt:~# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 00:18:F3:EF:97:CD  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:243 errors:0 dropped:0 overruns:0 frame:0
          TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:33151 (32.3 KiB)  TX bytes:15394 (15.0 KiB)

eth0      Link encap:Ethernet  HWaddr 00:18:F3:EF:97:CD  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:238 errors:0 dropped:0 overruns:0 frame:0
          TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:38067 (37.1 KiB)  TX bytes:16292 (15.9 KiB)
          Interrupt:4 

eth0.0    Link encap:Ethernet  HWaddr 00:18:F3:EF:97:CD  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:243 errors:0 dropped:0 overruns:0 frame:0
          TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:34123 (33.3 KiB)  TX bytes:15982 (15.6 KiB)

eth1      Link encap:Ethernet  HWaddr 40:10:18:00:00:2D  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:5 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

mon.wlan0 Link encap:UNSPEC  HWaddr 00-18-F3-EF-97-CD-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:18:F3:EF:97:CD  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:20978 (20.4 KiB)

root@OpenWrt:~# lsmod
Module                  Size  Used by    Not tainted
fuse                   50656  0 
speedtch                9168  0 
usblp                   9152  0 
usbatm                 13824  1 speedtch
nf_nat_tftp              432  0 
nf_conntrack_tftp       2400  1 nf_nat_tftp
nf_nat_irc               864  0 
nf_conntrack_irc        2592  1 nf_nat_irc
nf_nat_ftp              1360  0 
nf_conntrack_ftp        4896  1 nf_nat_ftp
ipt_MASQUERADE           992  1 
iptable_nat             2880  1 
nf_nat                 12544  5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_NOTRACK               672  0 
iptable_raw              656  1 
xt_state                 800  3 
nf_conntrack_ipv4       8352  6 iptable_nat,nf_nat
nf_defrag_ipv4           608  1 nf_conntrack_ipv4
nf_conntrack           44000 12 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRACK,xt_state,nf_conntrack_ipv4
pppoe                  10208  0 
pppox                   1312  1 pppoe
pppoatm                 2816  0 
ipt_REJECT              1984  2 
xt_TCPMSS               2720  1 
ipt_LOG                 4640  0 
xt_comment               464  0 
xt_multiport            1904  0 
xt_mac                   576  0 
xt_limit                1152  1 
iptable_mangle           992  0 
iptable_filter           768  1 
ip_tables               8800  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1856  4 
x_tables                9824 13 ipt_MASQUERADE,iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ppp_async               9040  0 
ppp_generic            21200  4 pppoe,pppox,pppoatm,ppp_async
slhc                    5360  1 ppp_generic
ntfs                  102288  0 
b43                   154752  0 
br2684                  6624  0 
atm                    42816  3 usbatm,pppoatm,br2684
mac80211              212576  1 b43
crc_ccitt                976  1 ppp_async
cfg80211              129216  2 b43,mac80211
compat_firmware_class     5936  1 b43
compat                   432  0 
arc4                     816  2 
aes_generic            31056  1 
deflate                 1328  0 
ecb                     1328  2 
cbc                     2016  0 
usb_storage            35584  1 
uhci_hcd               19088  0 
sd_mod                 22992  2 
ext3                   95888  1 
jbd                    44144  1 ext3
usbcore               107120  6 speedtch,usblp,usbatm,usb_storage,uhci_hcd
scsi_mod               72896  2 usb_storage,sd_mod
nls_base                4960  2 ntfs,usbcore
mbcache                 4160  0 
switch_robo             4048  0 
switch_core             5216  1 switch_robo
diag                    7504  0 
root@OpenWrt:~#

Pomyślałem że na static będzie coś lepiej, jest tak samo...

8

Odp: WL-500gP i modem ethernet

Poczekaj, u Ciebie wan to eth0.1, przynajmniej wg podziału switcha.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: WL-500gP i modem ethernet

Omg, działa wink

Skąd wies że ten port to eth0.1 ?

10

Odp: WL-500gP i modem ethernet

config 'switch_vlan' 'eth0_1'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 5'

Stąd. A źle miałeś sekcję wan napisaną.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: WL-500gP i modem ethernet

Hmmm, czyli port WAN to port 0, a ostatni port lan to port 5? To oznacza że jeśli wepnę pod ostatni port LAN to też będzie działać?

12

Odp: WL-500gP i modem ethernet

Czy na eth0 jest utworzony vlan 1. 0 oznacza numer fizyczny portu z 5 - to port ethernetowy w cpu. Nie widzisz go. Lany mają numery od 1 do 4.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: WL-500gP i modem ethernet

Kupiłem nowy modem z opcja bridge, jak to teraz skonfigurować z OpenWrt?

14

Odp: WL-500gP i modem ethernet

Na modemie daj bridge, na openwrt po prostu pppoe + user/haslo.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15

Odp: WL-500gP i modem ethernet

Zrobiłem tak, nie działa, próbowałem jeszcze konfigurację z Bridge interfaces i z opcją stp, nie działa. Mniej więcej tak wyglądała konfiguracja:

config 'interface' 'wan'
        option 'ifname' 'eth0.1'
        option 'dns' '208.67.220.220 208.67.222.222'
        option 'proto' 'pppoa'
        option 'username' 'hrtrsgub@webnet24.pl'
        option 'password' 'nQanpTL0'
        option 'encaps' 'llc'
        option 'vpi' '0'
        option 'vci' '35'
        option 'peerdns' '0'
        option 'type' 'bridge'
        option 'stp' '1'

a tak logi:

13:18 OpenWrt user.info kernel: device eth0.1 left promiscuous mode
Aug 14 19:13:18 OpenWrt user.info kernel: br-wan: port 1(eth0.1) entering disabled state
Aug 14 19:13:18 OpenWrt user.info kernel: device eth0.1 entered promiscuous mode
Aug 14 19:13:30 OpenWrt user.info kernel: device eth0.1 left promiscuous mode
Aug 14 19:13:30 OpenWrt user.info kernel: br-wan: port 1(eth0.1) entering disabled state
Aug 14 19:13:31 OpenWrt user.info kernel: device eth0.1 entered promiscuous mode
Aug 14 19:13:55 OpenWrt user.info kernel: device eth0.1 left promiscuous mode
Aug 14 19:13:55 OpenWrt user.info kernel: br-wan: port 1(eth0.1) entering disabled state
Aug 14 19:13:55 OpenWrt user.info kernel: device eth0.1 entered promiscuous mode

16

Odp: WL-500gP i modem ethernet

pppoe, nie pppoa. Router nie ma modemu adsl w sobie...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17

Odp: WL-500gP i modem ethernet

Dupa, nie łączy się... Modem: SpeedStream 4100

18

Odp: WL-500gP i modem ethernet

Super. A podzielisz się ustawieniami które zrobiłeś?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

19

Odp: WL-500gP i modem ethernet

Niestety nie bo za późno już, sa takie jakie mówiłeś.

20

Odp: WL-500gP i modem ethernet

Podstawa - co zrobiłeś, jak zrobiłeś, co jest w plikach i logach. Bo radosne "nie działa" nie mówi nic, tylko o tym że ktoś niepotrzebne marnuje czas.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

21

Odp: WL-500gP i modem ethernet

O tak wszyztko ustawiłem: http://img841.imageshack.us/img841/8928/plasmadesktoptv2624.jpg

Podczas drugiej próby zaznaczyłem Bridge interfaces a podczas trzeciej Enable STP. Logi pokazywały to samo co przy próbie z pppoa, czyli:

Aug 14 19:13:18 OpenWrt user.info kernel: device eth0.1 entered promiscuous mode
Aug 14 19:13:30 OpenWrt user.info kernel: device eth0.1 left promiscuous mode
Aug 14 19:13:30 OpenWrt user.info kernel: br-wan: port 1(eth0.1) entering disabled state
Aug 14 19:13:31 OpenWrt user.info kernel: device eth0.1 entered promiscuous mode
Aug 14 19:13:55 OpenWrt user.info kernel: device eth0.1 left promiscuous mode
Aug 14 19:13:55 OpenWrt user.info kernel: br-wan: port 1(eth0.1) entering disabled state
Aug 14 19:13:55 OpenWrt user.info kernel: device eth0.1 entered promiscuous mode