Create Simple Lan in Linux



root@localhost~# cd /etc/sysconfig/network-scripts + press enter + vi ifcfg-eth0 + a new page will be open + press i + write 192.168.168.1 beside IPADDR= + write 255.255.255.0 beside NETMASK= press :x + press enter + service network restart + press enter

Now for test write below line

root@localhost~# ping 192.168.168.2 (another pc ip) + enter


Reply from pc for correct configuration

Reply from 192.168.168.2 bytes 32 time= 80ms TTL 128
Reply from 192.168.168.2 bytes 32 time= 80ms TTL 128

0 comments:

Post a Comment