Quote:
How can I add a different gateway for a secondary NIC.
|
In /etc/sysconfig/network-scripts/ifcfg-eth0 you have a layout that is like
Code:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
So just add GATEWAY=<IP> there, for instance
Code:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes