1

I am working in a host in LAN segment of 192.168.148.X with subnet mask 255.255.255.0. The LAN should be configured to use 192.168.128.1 as default gateway. What I normally do is to issue following route commands

route add 192.168.128.1/32 dev eth0

route add default gw 192.168.128.1 dev eth0

to produce a routing table like this

enter image description here

But the problem is every time it boots up I have to issue the command manually. How to add those rules in network configuration?

My host is running with CentOS 6.6 X86_64

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.