Som sa troska teda hral s bridge, no daleko som nepochodil...
/etc/network/interfaces
auto br0
iface br0 inet dhcp
bridge_ports eth0 wlan0
auto lo
iface lo inet loopback
auto ham0
iface ham0 inet static
address 5.56.95.38
netmask 255.0.0.0
potom som restartoval siet prikazom "/etc/init.d/networking restart"
* Reconfiguring network interfaces...
Waiting for br0 to get ready (MAXWAIT is 32 seconds).
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/br0/00:18:de:64:29:79
Sending on LPF/br0/00:18:de:64:29:79
Sending on Socket/fallback
DHCPREQUEST of 192.168.0.100 on br0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.100 from 192.168.0.1
bound to 192.168.0.100 -- renewal in 462770832 seconds.
ham0: ERROR while getting interface flags: No such device
* Stopping NTP server ntpd
...done.
SIOCSIFADDR: No such device
ham0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
ham0: ERROR while getting interface flags: No such device
Failed to bring up ham0.
[ OK ]
enjoy@enjoy-laptop:~$ * Starting NTP server ntpd
...done.
ifconfig prezradza, ze je novy br0 a vyzera, ze vsetko funguje
br0 Link encap:Ethernet HWaddr 00:18:de:64:29:79
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:162 errors:0 dropped:0 overruns:0 frame:0
TX packets:171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:56847 (55.5 KB) TX bytes:17288 (16.8 KB)
eth0 Link encap:Ethernet HWaddr 00:18:f3:93:4d:14
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2808 errors:0 dropped:0 overruns:0 frame:0
TX packets:2988 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1504758 (1.4 MB) TX bytes:421064 (411.1 KB)
Interrupt:220
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:473 errors:0 dropped:0 overruns:0 frame:0
TX packets:473 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:136111 (132.9 KB) TX bytes:136111 (132.9 KB)
tap0 Link encap:Ethernet HWaddr 00:ff:16:ff:e2:83
inet addr:10.0.0.51 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:211 errors:0 dropped:0 overruns:0 frame:0
TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:32825 (32.0 KB) TX bytes:12496 (12.2 KB)
wlan0 Link encap:Ethernet HWaddr 00:18:de:64:29:79
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1431 errors:0 dropped:0 overruns:0 frame:0
TX packets:1527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:645738 (630.6 KB) TX bytes:256579 (250.5 KB)
wmaster0 Link encap:UNSPEC HWaddr 00-18-DE-64-29-79-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)
Som na wifi s ip 192.168.0.100, vypnem wifi a prepnem na kabel, IP mi zostala, net ide, no akonahle odpojim kabel a snazim sa pripojit k wifi, uz ma nepripoji. Wifi pyta stale heslo dokola a dokola aj ked ho s urcitostou davam spravne. Net nejde ani po opätovnom zapojeni kabli. Pomohlo len odstranenie br0 z interfaces a restart celeho kompu, kedze restart siete "akoze" iba odstranil br0 no ifconfig ju stale zobrazoval.. Po restarte slo vsetko po starom. Co robim zle?
Len este male zhrnutie...
domaca siet - IP pridelene podla MAC adries (?br0 malo MAC wifiny?), tym padom v laptope nastavene pridelovanie IP DHCP serverom
server http, ftp pocuvajuci zvonka so smerovanim na 192.168.0.100 (wifi), no potrebujem, aby to bezalo aj ked bude wifi vypnuta a naopak ked bude lan odpojene
zaroven aby som bol mobilny (wifi aj lan na firme, u klienta, kaviaren...)
pooomoooc prosim