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

Describe the mknod command and when you’d use it.

534


What is the example of command sentence?

510


How can I delete a file in linux?

534


What is the pwd command?

563


What is the difference between command ‘ping’ and ‘ping6’?

523






What does f mean linux?

524


Explain about lprm job number?

637


Explain the linux directory commands along with the description?

499


What can you tell about the tar command?

561


In order to display the last five commands you have entered using the fc command, you would type?

514


How do you copy in terminal?

553


What is FC command?

485


Explain the linux ‘cd’ command options along with the description?

478


What command do you type to find help about the command who?

536


What is clang format?

517