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

route add dev eth0

route add default gw 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.