Mam inny teraz problem związany z udostępnianiem Internetu poprzez bond0.
Kod: Zaznacz cały
bond0 Link encap:Ethernet HWaddr 00:e0:4c:07:5a:f2
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe07:5af2/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:756 errors:0 dropped:0 overruns:0 frame:0
TX packets:827 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64979 (63.4 KiB) TX bytes:81057 (79.1 KiB)
eth0 Link encap:Ethernet HWaddr 00:0d:f3:05:2d:ac
inet addr:10.0.0.197 Bcast:10.0.0.251 Mask:255.255.255.0
inet6 addr: fe80::20d:f3ff:fe05:2dac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5072 errors:0 dropped:0 overruns:0 frame:0
TX packets:4163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4155969 (3.9 MiB) TX bytes:636887 (621.9 KiB)
Interrupt:16 Base address:0x9a00
eth1 Link encap:Ethernet HWaddr 00:e0:4c:07:5a:f2
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:199 errors:0 dropped:0 overruns:0 frame:0
TX packets:190 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21344 (20.8 KiB) TX bytes:19982 (19.5 KiB)
Interrupt:17 Base address:0x9c00
eth2 Link encap:Ethernet HWaddr 00:e0:4c:07:5a:f2
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:557 errors:0 dropped:0 overruns:0 frame:0
TX packets:637 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43635 (42.6 KiB) TX bytes:61075 (59.6 KiB)
Interrupt:21 Base address:0x6000
Moje interfejsy.
/etc/network/interfaces":
Kod: Zaznacz cały
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto bond0
iface bond0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
Broadcast 192.168.1.255
slaves eth1 eth2
bond-mode 1
bond_primary eth1
bond-miimon 100
Problem jest taki, że chcę się połączyć przez jedną kartę sieciową z Internetem.
Dwie pozostałe chcę połączyć w bonding i udostępnić przez nie innym komputerem poprzez dhcp wyjścia na świat. Poprzez
przełącznik.
Mam zainstalowany pakiet dhcp3-server
Kod: Zaznacz cały
subnet 192.168.1.0 netmask 255.255.255.0 {
option domain-name "DS1";
option domain-name-servers 194.204.152.34, 83.17.174.58;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
}
oraz firewall przepuszczajacy polączenia...
Niestety FIREWALL oraz DHCP nie wspołgra z moim bondingiem eth1 i eth2. DHCP nie przydziela zadnym komputerom adresow IP trza wpisywac staatycznie na karte.
Lacze oczywiscie bez bondingu dzialalo znakomicie udostepnajac Internet innym komputerom w sieci.