how do you configure linux system as a router?


Answers were Sorted based on User's Feedback



how do you configure linux system as a router? ..

Answer / rohit tyagi

# /etc/sysctl.conf
enable ip packet forwarding
net.ipv4.ip_forward = 1

Is This Answer Correct ?    29 Yes 1 No

how do you configure linux system as a router? ..

Answer / saurendra prasad,kaizen it ser

Enable packet forwarding For that we should
echo "1" > /proc/sys/net/ipv4/ip_forward
apply the above command

Make it permanent by adding "net.ipv4.ip_forward = 1"
to /etc/sysctl.conf

Is This Answer Correct ?    17 Yes 2 No

how do you configure linux system as a router? ..

Answer / shaan

Make it permanent by adding "net.ipv4.ip_forward = 1"
to /etc/sysctl.conf


to get effect, run sysctl -p

Is This Answer Correct ?    9 Yes 0 No

how do you configure linux system as a router? ..

Answer / gnani

To make it consistent in next boot.. run these command also

chkconfig syslog on
service syslog restart

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Linux AllOther Interview Questions

There are 4 network Interfaces, how can we find which one is Primary.

2 Answers  


How to build new filesystem ? and what is irig file system?

3 Answers  


You want to create a compressed backup of the users' home directories. What utility should you use?

5 Answers  


How to check all open ports on linux machine and block unsed ports????????

7 Answers   Tech Mahindra,


How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples

1 Answers  


How to give 2 different gateway IP addresses for 2 different interfaces in same system ?

5 Answers   Toyota,


commands regarding the adding of users into groups n different options with useradd...?

5 Answers   IBM,


In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)

1 Answers  


Tell me the 5 differences between Linux and Unix?

4 Answers  


why you are using nis server

2 Answers  


Why is it suggested to disable journalism in ext4 filesystem?

1 Answers   IBM, TCS,


tell me some of the Linux HotKeys do you know?

3 Answers  


Categories