How To Configure Gateway In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Check your current gateway Use the command: route –n
2. Create a new gateway Use the command: route add default gw <router IP address>
3. Configure the gateway in /etc/sysconfig/network file add the line: GATEWAY=<router IP address>
4. Restart the networking service Use the command: service network restart