git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a static route to the SSVM for remote NFS server


I am doing basic networking with 2 NICS (one for management/storage and the other for Guest traffic).

When you configure the physical NIC/bridges  you can only define one default gateway so I do it for the guest traffic which means the routing table on the SSVM ends up as  -

root@s-1-VM:/etc# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         172.30.4.1      0.0.0.0         UG        0 0          0 eth2
8.8.4.4         172.30.3.1      255.255.255.255 UGH       0 0          0 eth1
8.8.8.8         172.30.3.1      255.255.255.255 UGH       0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
172.30.3.0      0.0.0.0         255.255.255.192 U         0 0          0 eth1
172.30.4.0      0.0.0.0         255.255.255.128 U         0 0          0 eth2


where 172.30.3.0/26 is the management network and 172.30.4.0/25 is the guest network.

My NFS server has an IP of 172.30.5.2 so it is on a different subnet which means the the secondary storage would have to run over the guest NIC if I am understanding this properly.

I want storage over the management NIC.  Based on some advice on this mailing list I configured storage to use the same bridge (KVM label) as management but it won't build ie. it errors on the storage traffic part I suspect because the subnet details I enter are not part of the management subnet.

Can I just add a static route to the SSVM for the 172.30.5.0/28 subnet and would this work or is there a better way to do it ?

On a more general note with basic networking the assumption seems to be you run everything over the same NIC and if you don't it seems to cause no end of problems :)