dve sietovky na freebsd
mam klasicky net co ponuka orange, router, tam napicham kable z pocitacov a idem. takto je kazdy pocitac v sieti rovnocenny, kazdy berie net z toho routra. mam 3 pocitace. desktop, notebook a staru sunku s freebsd. s notebookom sa na net pripajam cez wifi. chcem spravit to, ze mam dve sietovky na freebsd, jedna ide k routru od druhej pojde kabel do notebooku (kedze sa na siet pripajam k routru bezdratovo). vysledkom bude server na nejaky ten apache / mysql na freebsd a budem k tomu pristupovat cez ten notebook. (napr. moze freebsd sluzit ako nonstop stahovac torrentov :))
ako to prakticky spojazdnit?
kde kam nahadzat adresy a podobne zalezitosti ?
diiik
Pre pridávanie komentárov sa musíte prihlásiť.
na notebooku su dve sietovky, jedna normalna a jedna wifi
napisal aj do freebsd-questions mailing listu.
uname -a
FreeBSD dexter 7.0-RELEASE Freebsd 7.0-RELEASE #5: Fri Jan 2 21:25:21 CET 2009 root@dexter:/usr/obj/usr/src/sys/DEXTER i386
ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether XX:XX:XX:XX:XX:XX
inet 192.168.0.177 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet 100baseTX
status: active
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
ether XX:XX:XX:XX:XX:XX
inet 192.168.0.176 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet 100baseTX (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
when I want to ping sk0 from eth0 on linux box, ping is ok, but this message appears to me in freebsd console
Jan 3 01:07:39 dexter kernel: arp: 192.168.0.2 is on rl0 but got reply from XX:XX:XX:XX:XX:XX on sk0
linux command
ping -I eth0 192.168.0.176
linux ifconfig
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20a:e4ff:fef3:abb6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:180 (180.0 B) TX bytes:11542 (11.2 KB)
Interrupt:22 Base address:0x3000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:416 errors:0 dropped:0 overruns:0 frame:0
TX packets:416 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25130 (24.5 KB) TX bytes:25130 (24.5 KB)
wlan0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.0.173 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::214:a4ff:fe79:3cbc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30030 errors:0 dropped:0 overruns:0 frame:0
TX packets:25399 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32882410 (31.3 MB) TX bytes:3522346 (3.3 MB)
mac adres from eth0 on linux machine is same as from the error output on bsd
thank you a lot
stewe
Ak by si chcel ist s NB cez server a jeho druhu sietovku na net, musel by si z toho FreeBSD urobit aj router/switch, ktorym by si si vytvoril dalsi subnet (v ktorom by bol len NB) co je vzhladom na tvoju situaciu (ked mas iny router ) zbytocne .
ked to pingujem cez wifi, obojstranne mam loss, zo 100 sa vrati 98 resp. 99 :))
ja viem ze tam ten jeden paket hra (mozno, a vlastne aku?) mali ulohu, ale aj tak no...
je taky loss v pohode?