Linux as a Router configuration for Client Machine HARDWARE NETWORKING LINUX SOFTWAREIt Tech Technology

It Tech Technology

COMPUTER HARDWARE NETWORKING

Breaking

Home Top Ad

Post Top Ad

Thursday, January 28, 2016

Linux as a Router configuration for Client Machine



Necessary configuration for Client Machine

On windows machine:  Right click on Network Place → Right click Local area connection → Select Internet Protocol (TCP/IP) → Click Properties → Select Use the following IP address then put the following IP configuration.






On Linux machine:  Change the IP address of both LAN card

[root@ns1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

#Broadcom Corporation Net link BCM57875 Gigabyte Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
TYPE=Ethernet

PEERDNS=no

USERCTL=no

IPV6INIT=no

IPADDR=210.207.201.1

NETMASK=255.255.255.0

Gateway=210.207.201.100

NETWORK=210.207.201.0

BROADCAST=210.207.201.255

GATEWAY=210.207.201.100

Restart or Reload the NIC card: After changing the NIC card restart the network card by following this command.


[root@ns1 ~]# service iptables stop

[root@ns1 ~]# chkconfig iptables off

[root@ns1 ~]# service network restart

Testing the connection from both Linux and windows machine

On windows machine: Type the Following IP address on your command prompt like below, if you get this message then your router is working properly.






On Linux Machine: Open your terminal window by Right clicking on Desktop and then select Terminal.






Now the the Router is properly working.

Post Bottom Ad