Monday, December 28, 2015

routing - linux route 2nd internal network

In my network configuration, I have three switches:





  1. Internet (xx.xx.140.129/25)

  2. Internal SAN (10.1.1.0/24)

  3. iLo management (10.1.30.0/24)



I have one Linux server which I use for management that needs to have access to all three networks, however it only has 2 NICs. I've cabled switches #2 and #3 together, so there is a physical path between them, and I've tried ip route add 10.1.1.0/24 eth0, but that did not work. Any ideas on how this could be done?





[root@ilo]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
XX.XX.140.128 0.0.0.0 255.255.255.128 U 0 0 0 eth1
10.1.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 XX.XX.140.129 0.0.0.0 UG 0 0 0 eth1

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...