Nishant Chauhan
asked on
adding route creating issues in RHEL
Hi All,
I have 4 nics and on 4th nic eth3 i have diffrent vlan on diff gateway.
problem is coming when i am enabling this nic eth3 - whenevr i am doing service network restart sometime it hangs on eth3
and some able to sucess but behaving strange - like ssh login issues or traffic in and out issues.
can you please help the best procedure to use for adding new route on eth3 on rhel 6.
also any recommedned method to troubleshoot it?
I have 4 nics and on 4th nic eth3 i have diffrent vlan on diff gateway.
problem is coming when i am enabling this nic eth3 - whenevr i am doing service network restart sometime it hangs on eth3
and some able to sucess but behaving strange - like ssh login issues or traffic in and out issues.
can you please help the best procedure to use for adding new route on eth3 on rhel 6.
also any recommedned method to troubleshoot it?
paste below outputs
#netstar -nltpr
#cat /etc/sysconfig/network-scr ipts/ifcfg -eth3
#cat /etc/sysconfig/network-scr ipts/route -eth3
TY/SA
#netstar -nltpr
#cat /etc/sysconfig/network-scr
#cat /etc/sysconfig/network-scr
TY/SA
ASKER
[root@xxxx ~]# netstat -nltpr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.1.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0
169.200.0.0 0.0.0.0 255.255.0.0 U 0 0 0 bond0
0.0.0.0 10.1.200.254 0.0.0.0 UG 0 0 0 eth0
[root@xxxx ~]# cat /etc/sysconfig/network-scr ipts/route -eth3
10.1.200.128/255.255.255.1 92 via 10.1.200.126 dev eth3
10.1.200.0/255.255.255.192 via 10.1.200.126 dev eth3
[root@xxxx ~]# cat /etc/sysconfig/network-scr ipts/ifcfg -eth3
DEVICE=eth3
HWADDR=xxxx
NM_CONTROLLED=yes
ONBOOT=no
BOOTPROTO=static
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
IPADDR=10.1.200.104
NETMASK=255.255.255.192
GATEWAY=10.1.200.126
now when i enable this nic means BOOT=yes - default route used to change to eth3 i dont know how.
and i think thats why its behaving abnormal.
please advice how to fix default gateway also.
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.1.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0
169.200.0.0 0.0.0.0 255.255.0.0 U 0 0 0 bond0
0.0.0.0 10.1.200.254 0.0.0.0 UG 0 0 0 eth0
[root@xxxx ~]# cat /etc/sysconfig/network-scr
10.1.200.128/255.255.255.1
10.1.200.0/255.255.255.192
[root@xxxx ~]# cat /etc/sysconfig/network-scr
DEVICE=eth3
HWADDR=xxxx
NM_CONTROLLED=yes
ONBOOT=no
BOOTPROTO=static
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
IPADDR=10.1.200.104
NETMASK=255.255.255.192
GATEWAY=10.1.200.126
now when i enable this nic means BOOT=yes - default route used to change to eth3 i dont know how.
and i think thats why its behaving abnormal.
please advice how to fix default gateway also.
ASKER
I am able to fix route issue but now problem is whenevr i am restarting network service ...default gateway used to change to eth3 from eth1..please help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By default outgoing traffic will leave by the default gateway. So if the DG is on eth1 and you SSH to the eth3 interface IP address, chances are it fails because the return traffic is leaving out the other interface.
Without knowing what interfaces are used for what services or purposes it is almost impossible to make a recommendation without possibly breaking something else.