Poradte se sitovanim (bridge)

milan.cizek at up.mpsv.cz milan.cizek at up.mpsv.cz
Wed May 14 09:27:45 CEST 2003


Ahoj,
snazim se na svem domacim FreeBSD rozjet bridge a nedari se. Mozna je
problem v tom, ze vlastne ani 100% nevim, jestli je to to prave, a jak to po
teoreticke strance funguje. Mam nasledujici situaci:

WiFi AccessPoint (192.168.1.251)<>FreeBSD[wi1<>ed0 (192.168.1.2)]<>PC s Win
(192.168.1.10)

wi1 je Wireless Z-Com karta, ed0 je bezne ethernet device nejaky Realtek.
Mym cilem je videt z WinPC AP (a dalsi klienty za) stejne tak i opacne. Je
bridge to co potrebuju?

Podle ziskanych informaci by se pak obe karty meli tvarit jako jednina, tj.
transparentne s jednou IP (?). K wi1 se mi ale IP priradit nepodari, stejne
tak ji nepriradi ani system (coz by asi mel), IP z uplně jineho rozsahu
priradit lze. Jak poznam, ze mi to uspesne funguje (ping je jasnej, ale
jinak? netstat?).


router# ifconfig ed0
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::250:baff:fecd:7358%ed0 prefixlen 64 scopeid 0x4
        ether 00:50:ba:cd:73:58
router# ifconfig wi1
wi1: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ether 00:60:b3:6b:0f:02
        media: IEEE 802.11 Wireless Ethernet DS/11Mbps
        status: associated
        ssid test 1:chvalsiny.net
        stationname "FreeBSD WaveLAN/IEEE node"
        channel 4 authmode OPEN powersavemode OFF powersavesleep 100
        wepmode OFF weptxkey 1

router# ifconfig wi1 inet 10.0.0.1 netmask 255.255.255.0
router# ifconfig wi1 inet 192.0.0.1 netmask 255.255.255.0
router# ifconfig wi1 inet 192.168.0.1 netmask 255.255.255.0
router# ifconfig wi1 inet 192.168.1.1 netmask 255.255.255.0
ifconfig: ioctl (SIOCAIFADDR): File exists
router# ifconfig wi1 inet 192.168.1.13 netmask 255.255.255.0
ifconfig: ioctl (SIOCAIFADDR): File exists
router# ifconfig wi1
wi1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::260:b3ff:fe6b:f02%wi1 prefixlen 64 scopeid 0x2
        ether 00:60:b3:6b:0f:02
        media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps)
        status: associated
        ssid test 1:""
        stationname "FreeBSD WaveLAN/IEEE node"
        channel 4 authmode OPEN powersavemode OFF powersavesleep 100
        wepmode OFF weptxkey 1
router# ifconfig ed0
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::250:baff:fecd:7358%ed0 prefixlen 64 scopeid 0x4
        ether 00:50:ba:cd:73:58

router# kldstat
Id Refs Address    Size     Name
 1    2 0xc0100000 52679c   kernel
 2    1 0xc1227000 6000     bridge.ko

router# sysctl net.link.ether.bridge=1
net.link.ether.bridge: 0 -> 1
router# sysctl net.link.ether.bridge_cfg="ed0 wi1"
net.link.ether.bridge_cfg:  -> ed0 wi1
router# sysctl net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1

Tady je to stale stejne - karta nema potrebnou IP.

Milan




More information about the Users-l mailing list