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


Please Help Members By Posting Answers For Below Questions

How do I find previous commands in linux?

543


What is tty name?

565


The head command writes the how many lines of a file to screen?

553


What is kill command?

512


How do I run a bash script in linux?

513






How to root mirror in linux?

572


How do you clear the screen in linux?

544


How can we increase disk read performance in single command in Linux?

571


What is the gcc command?

524


Explain about chmod options filename?

643


What are the 7 types of sentences?

564


What are the command prompt commands?

529


How do I permanently delete linux history?

536


What is vnc?

599


What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?

557