[PLUG] Networking commands: debian => sysv: translation
Roderick A. Anderson
raanders at acm.org
Tue May 30 23:49:22 UTC 2006
I think I got that subject line worded correct.
I am trying to set up the routing for a linux-server with two network
interfaces, two subnets, and two routes.
The commands make sense but I'm not sure how to do it in the sysv (
Redhat/Fedora/WB/CentOS ) way. I don't remember ever setting any routes
using the standard init scripts etc. ( More system magic going on? )
The commands are:
auto eth0
iface eth0 inet static
address 10.10.64.16
netmask 255.255.255.0
network 10.10.64.0
broadcast 10.10.64.255
gateway 10.10.64.1
up /bin/ip route add 10.10.64.0/24 dev eth0 src 10.10.64.16 table 64
up /bin/ip route add default via 10.10.64.1 table 64
up /bin/ip rule add from 10.10.64.0/24 table 64
post-down /bin/ip rule delete from 10.10.64.0/24 table 64
auto eth1
iface eth1 inet static
address 10.10.68.61
netmask 255.255.255.0
network 10.10.68.0
broadcast 10.10.68.255
up /bin/ip route add 10.10.68.0/24 dev eth1 src 10.10.68.61 table 68
up /bin/ip route add default via 10.10.68.1 table 68
up /bin/ip rule add from 10.10.68.0/24 table 68
post-down /bin/ip rule delete from 10.10.68.0/24 table 68
TIA,
Rod
--
More information about the PLUG
mailing list