Есть две сетевые карты. К eth0 заведет провод от провайдер. Его реквизиты:
gate 192.168.14.1
mask 255.255.255.0
ns1 213.170.119.254
ns2 213.170.64.33
Через вторую сетевую (eth1) планирую раздать интернет в сеть (192.168.0.1) без dhcp
Попробовал прописать все как
https://forum.ubuntu.ru/index.php?topic=107492.0 - интернет вообще отвалился.
ОС Xubuntu 10.10.
Что я делаю не так?
Мой /etc/network/interfaces:
auto lo
iface lo inet loopback
Вывод route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.14.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
192.168.14.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
nano /etc/resolv.conf:
# Generated by NetworkManager
nameserver 213.170.119.254
nameserver 213.170.64.33
netstat -r
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.14.1 0.0.0.0 UG 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
192.168.14.0 * 255.255.255.0 U 0 0 0 eth0
ip r
default via 192.168.14.1 dev eth0 proto static
169.254.0.0/16 dev eth1 scope link metric 1000
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.1 metric 1
192.168.14.0/24 dev eth0 proto kernel scope link src 192.168.14.2 metric 1
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:16:e6:57:98:c1 brd ff:ff:ff:ff:ff:ff
inet 192.168.14.2/24 brd 192.168.14.255 scope global eth0
inet6 fe80::216:e6ff:fe57:98c1/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:05:5d:77:f6:e3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global eth1
inet6 fe80::205:5dff:fe77:f6e3/64 scope link
valid_lft forever preferred_lft forever
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:16:e6:57:98:c1
inet addr:192.168.14.2 Bcast:192.168.14.255 Mask:255.255.255.0
inet6 addr: fe80::216:e6ff:fe57:98c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5458 errors:0 dropped:0 overruns:0 frame:0
TX packets:5922 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4755502 (4.7 MB) TX bytes:1067279 (1.0 MB)
Interrupt:20
eth1 Link encap:Ethernet HWaddr 00:05:5d:77:f6:e3
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::205:5dff:fe77:f6e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:225 errors:0 dropped:0 overruns:0 frame:0
TX packets:198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20968 (20.9 KB) TX bytes:23551 (23.5 KB)
Interrupt:18 Base address:0x6000
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:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1424 (1.4 KB) TX bytes:1424 (1.4 KB)
sysctl net.ipv4.ip_forward
nslookup gmail.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: gmail.com
Address: 209.85.148.17
Name: gmail.com
Address: 209.85.148.83
Name: gmail.com
Address: 209.85.148.19
Name: gmail.com
Address: 209.85.148.18
Заранее благодарен за любую помощь