Ahoj,
brdige ethernet+wifi se tu uz resil hodnekrat, me to vsak stale nefunguje.
Mam pocitace, ktere mohou byt pripojeny pres ethernet, nebo pres wifi. Primarne pujde o ethernet, wifi se moc pouzivat nebude. Dopredu nevim, jak bude ktery pocitac pripojeny. Navic by wifi mohla fungovat jako zaloha.
Potrebuji tedy nejak zaridit, aby libovolna sitovka eth0/wlan0 ziskala z DHCP IP a po odpojeni libovolne z nich PC mel stale stejnou IP.
Zkousel jsem bonding i bridge, ale asi delam neco spatne.
Kdyz pouziju bonding, ethernet mi jde, ale zase nejde wifi.
U bridge to vetsinou pise, ze nemuze pridat sitovku wlan0.
Zde jsou me configy, ktere jsem zkousel a ani jeden z nich nefungoval podle mych predstav:
# cat /etc/network/interfaces
auto bond0
iface bond0 inet dhcp
bond-slaves wlan0 eth0
bond-mode active-backup
bond-primary eth0
bond-miimon 100
allow-bond0 eth0
iface eth0 inet manual
allow-bond0 wlan0
iface wlan0 inet manual
wpa-bridge bond0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# cat /etc/network/interfaces
auto br0
iface br0 inet dhcp
bridge_ports eth0 wlan0
# cat /etc/network/interfaces
auto br0
iface br0 inet dhcp
pre-up ip link set eth0 down
pre-up ip link set wlan0 down
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
pre-up ip addr flush dev eth0
pre-up ip addr flush dev wlan0
up /usr/sbin/wpa_supplicant -B -i wlan0 -D nl80211 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf -b br0
up brctl addif br0 wlan0
post-down ip link set eth0 down
post-down ip link set wlan0 down
post-down ip link set br0 down
post-down brctl delif br0 eth0 wlan0
post-down brctl delbr br0
V /etc/wpa_supplicant/wpa_supplicant.conf mam dobry config, ktery se na WiFi pripoji.
Co delam spatne a jak by se to spravne melo resit?
Diky.