[clue] Looking for help with a "simple" Debian "route" command....
Jim Bucks
jbucks at procci.com
Fri Dec 23 15:40:58 MST 2011
Hi All,
I've got a relatively simple "routing" question. How do I add
"secondary / non-default" gateway's?
I've got a 64 bit Debian 6.0.3 server acting as a "Samba" server in
between an Isilon storage system and an HP switch (with about 15 1Gig
client computers). It's my first Debian server (most of my others are
Fedora, Centos, and Solaris).
Here's the rough layout.
Isilon
----------------
172.200.205.12 / 24 (10 Gig to Debian Server)
Debian Server
----------------
172.200.205.52 / 24 (10 Gig, Port 0 to Isilon - NFS Mount)
172.200.205.53 / 24 (10 Gig, Port 1 to HP Switch - SMB service)
192.9.200.xxx / 24 (1 Gig Port to house / internal network so I can work
on it from my desk)
HP 2910 Switch
-----------------
172.200.205.102 / 24 (10 Gig, Port 0 to Debian Server)
172.200.205.155 - 175 (1 Gig ports to client workstations)
Here is what I'm seeing on the Debian Server.
17:04:14-[root at isilonSMB: network]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.9.200.xxx * 255.255.255.0 U 1 0 0
eth1
172.200.205.0 * 255.255.255.0 U 0 0 0 eth2
172.200.205.0 * 255.255.255.0 U 0 0 0 eth6
default 192-9-200-xxx 0.0.0.0 UG 0 0
0 eth1
17:11:49-[root at isilonSMB: network]$
17:11:49-[root at isilonSMB: network]$ cat 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 eth1
#NetworkManager#iface eth1 inet dhcp
# 10 Gig Ethernet into Isilon
auto eth2
iface eth2 inet static
address 172.200.205.52
netmask 255.255.255.0
# gateway 172.200.205.12
NOTE: When I uncomment the above line, adds another default gateway -
not a plain gateway.
# 10 Gig Ethernet into HP 2910-24 switch.
auto eth6
iface eth6 inet static
address 172.200.205.53
netmask 255.255.255.0
# gateway 172.200.205.12
NOTE: When I uncomment the above line, adds another default gateway -
not a plain gateway.
17:13:08-[root at isilonSMB: network]$
Here's what the routing table looks like after I uncomment the two
gateway lines above...
17:15:35-[root at isilonSMB: network]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
67.134.161.0 * 255.255.255.0 U 1 0 0 eth1
172.200.205.0 * 255.255.255.0 U 0 0 0 eth2
172.200.205.0 * 255.255.255.0 U 0 0 0 eth6
default ACC8CD0C.ipt.ao 0.0.0.0 UG 0 0 0 eth6
default ACC8CD0C.ipt.ao 0.0.0.0 UG 0 0 0 eth2
default 67-134-161-1.di 0.0.0.0 UG 0 0 0 eth1
17:15:37-[root at isilonSMB: network]$
Here's what I get when I try a "normal" route add command....
17:17:04-[root at isilonSMB: network]$ route -v add -net 172.200.205.53
netmask 255.255.0.0 gw 172.200.205.53
route: netmask doesn't match route address
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
route {-h|--help} [<AF>] Detailed usage syntax for
specified AF.
route {-V|--version} Display version/author and
exit.
-v, --verbose be verbose
-n, --numeric don't resolve names
-e, --extend display other/more information
-F, --fib display Forwarding Information Base
(default)
-C, --cache display routing cache instead of FIB
<AF>=Use '-A<af>' or '--<af>'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)
17:31:29-[root at isilonSMB: network]$
17:31:29-[root at isilonSMB: network]$ route -v add -net 172.200.205.53/24
gw 172.200.205.53
route: netmask doesn't match route address
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
route {-h|--help} [<AF>] Detailed usage syntax for
specified AF.
route {-V|--version} Display version/author and
exit.
-v, --verbose be verbose
-n, --numeric don't resolve names
-e, --extend display other/more information
-F, --fib display Forwarding Information Base
(default)
-C, --cache display routing cache instead of FIB
<AF>=Use '-A<af>' or '--<af>'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)
17:32:05-[root at isilonSMB: network]$ route -v add -net 172.200.205.53
netmask 255.255.255.0 gw 172.200.205.53
route: netmask doesn't match route address
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
route {-h|--help} [<AF>] Detailed usage syntax for
specified AF.
route {-V|--version} Display version/author and
exit.
-v, --verbose be verbose
-n, --numeric don't resolve names
-e, --extend display other/more information
-F, --fib display Forwarding Information Base
(default)
-C, --cache display routing cache instead of FIB
<AF>=Use '-A<af>' or '--<af>'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)
17:32:12-[root at isilonSMB: network]$
Hope this rambling makes some sense.....
Jim
--
+--------------------------------------+------------------------------+
|Jim Bucks |Phone: +1(970)539-1242 Cell |
|1924 44th Avenue Court | +1(970)330-3276 Home |
|Greeley, Colorado 80634 (USA) |Email: jbucks at procci.com |
+--------------------------------------+------------------------------+
| WWW: http://www.procci.com |
+---------------------------------------------------------------------+
--
+--------------------------------------+------------------------------+
|Jim Bucks |Phone: +1(970)539-1242 Cell |
|1924 44th Avenue Court | +1(970)330-3276 Home |
|Greeley, Colorado 80634 (USA) |Email: jbucks at procci.com |
+--------------------------------------+------------------------------+
| WWW: http://www.procci.com |
+---------------------------------------------------------------------+
More information about the clue
mailing list