При стандарном конфиге interfaces
Код
auto lo
iface lo inet loopback
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider
iface eth0 inet ipv4ll
auto eth0
auto eth1
iface eth1 inet manual
Так как с моим переделаным не работает ни сеть ни инет
Код
uto lo
iface lo inet loopback
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider
iface eth0 inet ipv4ll
auto eth0
iface eth0 inet static
address 192.168.41.32
netmask 255.255.255.0
gateway 192.168.41.1
broadcast 192.168.41.1
up route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.41.1 eth0
up route add -net 172.16.12.0 netmask 255.255.255.0 gw 192.168.41.1 eth0
up route add -net 217.73.142.1 netmask 255.255.255.255 gw 192.168.41.1 eth0
up route add -net 10.2.0.0 netmask 255.255.0.0 gw 192.168.41.1 eth0
up route add -net 87.238.159.50 netmask 255.255.255.255 gw 192.168.41.1 eth0
auto eth1
iface eth1 inet manual
address 192.168.1.3
netmask 255.255.255.0
Вывод команд
shell@shell:~$ ifconfig
eth0 Link encap:Ether
net HW
addr 00:30:18:a0:a2:c5
i
net6
addr: fe80::230:18ff:fea0:a2c5/64 Диапазон:Ссылка
ВВЕРХ BROADCAST RUNNING MULTICAST
MTU:
1500 Metric:1
RX packets:10399 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:1000
RX bytes:862026 (841.8 KB) TX bytes:4147 (4.0 KB)
Прервано:217 Base
address:0x2000
eth1 Link encap:Ether
net HW
addr 00:02:2a:e2:0c:ab
i
net6
addr: fe80::202:2aff:fee2:cab/64 Диапазон:Ссылка
ВВЕРХ BROADCAST RUNNING MULTICAST
MTU:
1500 Metric:1
RX packets:934 errors:0 dropped:0 overruns:0 frame:0
TX packets:1015 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:1000
RX bytes:247562 (241.7 KB) TX bytes:293068 (286.1 KB)
Прервано:20 Base
address:0xac00
eth0:
avahi Link encap:Ether
net HW
addr 00:30:18:a0:a2:c5
i
net addr:169.254.8.162 Bcast:169.254.255.255 Mask:255.255.0.0
ВВЕРХ BROADCAST RUNNING MULTICAST
MTU:
1500 Metric:1
Прервано:217 Base
address:0x2000
lo Link encap:Локальная
петля (Loopback)
i
net addr:127.0.0.1 Mask:255.0.0.0
i
net6
addr: ::1/128 Диапазон:Узел
ВВЕРХ LOOPBACK RUNNING
MTU:16436 Metric:1
RX packets:1888 errors:0 dropped:0 overruns:0 frame:0
TX packets:1888 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:0
RX bytes:94400 (92.1 KB) TX bytes:94400 (92.1 KB)
ppp0 Link encap:Протокол PPP (Point-to-Point Protocol)
i
net addr:92.113.24.207 P-t-P:195.5.5.202 Mask:255.255.255.255
ВВЕРХ POINTOPOINT RUNNING NOARP MULTICAST
MTU:1492 Metric:1
RX packets:919 errors:0 dropped:0 overruns:0 frame:0
TX packets:996 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:3
RX bytes:226375 (221.0 KB) TX bytes:269846 (263.5 KB)
------------
shell@shell:~$
route -n
Таблица маршутизации ядра протокола IP
Destination Gateway Genmask Flags Metric Ref Use Iface
195.5.5.202 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth00.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0
eth0