how do you configure linux system as a router?
Answer Posted / bhupendra singh jhala
follow following command
1.) vi /etc/sysctl.conf
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
save (:wq!)
You should have a Two physical LAN card, if You have't two
Lan cat. You have to creat virtual Lan card
2.) cp -arvf /etc/sysconfig/network-scripts/ifcfg-
eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1
3.) Set a diffrent Class IP in virtual Lan card
4.) start network service
/etc/init.d/network restart
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is the ipconfig command for linux?
What does uname do in linux?
What is the use of cp p command?
What is command to check ports running/used over local machine
What is finger in networking?
How do you sort cpu in top command?
What are different command to check ram, process and hdd of linux machine?
You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?
How do I clear terminal command history?
How do I navigate in cmd?
How do I find the process id in linux?
What is difference between sh and bash?
What is the command can be run to remove all the rules in an iptable table?
Which command is used to compare the files?
The command ‘umask -S’