[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

Collaborative Computational Project Number 14

for Single Crystal and Powder Diffraction

CCP14

Static Network setup for two network cards in Linux

The CCP14 Homepage is at http://www.ccp14.ac.uk

[Back to CCP14 Web/Config Main Page]

Why note this info down

Because this is done once in a blue moon and is non-obvious


After setting up the generic standard network stuff in setup and Linuxconf - everything should be OK and ready for you to start adding IP alias addresses

(Many internet HOW-To's on this subject are not applicable to Redhat 7.3 in using the route command)

Ignore all the following which was based on information gained on the internet and looks incorrect - for Redhat 7.3 at least?

http://www.firstalt.co.uk/sample/la2.pdf
http://www.geocities.com/rlcomp_1999/routes.html
http://www1.jpartner.com/public/documentation/platform/linux/routing.htm
http://www.tldp.org/HOWTO/mini/IP-Alias/commands.html
http://www.thing.dyndns.org/redhat/route.htm

http://www.tldp.org/HOWTO/HOWTO-INDEX/categories.html

http://ftp.linux.org.uk/pub/linux/Networking/docs/Using-Route

vi /etc/sysconfig/static-routes and in this case, add the following telling which ethernet card to use which gateway/router:

eth1 net 193.61.32.0 netmask 255.255.255.0 gw 193.61.32.245
eth0 net 193.61.34.0 netmask 255.255.254.0 gw 193.61.34.245

Check: /etc/sysconfig/network

Reboot and if you do netstat -rn you should get something like:

route

[ccp14@mill rc.d]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
193.61.32.0     0.0.0.0         255.255.255.0   U        40 0          0 eth1
193.61.34.0     0.0.0.0         255.255.254.0   U        40 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U        40 0          0 lo
0.0.0.0         193.61.32.245   0.0.0.0         UG       40 0          0 eth1

ifconfig -a should give something like the following

[root@mill root]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:02:B3:63:EF:43
          inet addr:193.61.35.89  Bcast:193.61.35.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
          RX packets:2489300 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27034 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:214548375 (204.6 Mb)  TX bytes:2219890 (2.1 Mb)
          Interrupt:5 Base address:0x1000

eth1      Link encap:Ethernet  HWaddr 00:02:B3:63:EF:35
          inet addr:193.61.32.160  Bcast:193.61.32.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
          RX packets:162821 errors:0 dropped:0 overruns:0 frame:1
          TX packets:48863 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:81052332 (77.2 Mb)  TX bytes:2639558 (2.5 Mb)
          Interrupt:10 Base address:0x3000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1616 (1.5 Kb)  TX bytes:1616 (1.5 Kb)
Test:

snarf http://www.ccp14.ac.uk/ccp/web-mirrors/farrugia/~louis/software/wingx/wgx_164.zip

snarf http://www.ccp14.cryst.bbk.ac.uk/ccp/web-mirrors/farrugia/~louis/software/wingx/wgx_164.zip

OUTPUT
       The output of the kernel routing table is organized in the
       following columns

       Destination
              The destination network or destination host.

       Gateway
              The gateway address or '*' if none set.

       Genmask
              The    netmask    for    the    destination    net;
              '255.255.255.255'  for  a  host   destination   and
              '0.0.0.0' for the default route.

       Flags  Possible flags include
              U (route is up)
              H (target is a host)
              G (use gateway)
              R (reinstate route for dynamic routing)
              D (dynamically installed by daemon or redirect)
              M (modified from routing daemon or redirect)
              A (installed by addrconf)
              C (cache entry)
              !  (reject route)

SYNOPSIS
       route [-CFvnee]

       route  [-v]  [-A  family] add [-net|-host] target [netmask
              Nm] [gw Gw] [metric N] [mss M] [window W] [irtt  I]
              [reject] [mod] [dyn] [reinstate] [[dev] If]

       route  [-v]  [-A  family]  del [-net|-host] target [gw Gw]
              [netmask Nm] [metric N] [[dev] If]

       route  [-V] [--version] [-h] [--help]


[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

If you have any queries or comments, please feel free to contact the CCP14