Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 U 1 0 0 eth1
10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
[user@debian5:tmp]$ sudo route add default gw 10.0.35.1
[user@debian5:tmp]$ ping google.com
PING google.com (209.85.148.100) 56(84) bytes of data.
64 bytes from fra07s07-in-f100.1e100.net (209.85.148.100): icmp_req=1 ttl=57 time=40.9 ms
64 bytes from fra07s07-in-f100.1e100.net (209.85.148.100): icmp_req=2 ttl=57 time=39.9 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 39.908/40.410/40.913/0.541 ms
[user@debian5:tmp]$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0 cat /home/user/.l3rc
l3cd=/users/igor-public/nt-scale/debian5.unix.nt/user
iface eth0 inet static
address 10.0.35.45
netmask 255.255.255.0
network 10.0.35.0
broadcast 10.0.35.255
gateway 10.0.35.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.0.35.1
dns-search unix.nt
[user@debian5:tmp]$ for i in /proc/sys/net/ipv4/conf/*/accept_redirects; do sudo sh -c "echo 0 > $i"; done
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------