Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
EXPERIMENT NO. 6
Name :- Class : T.E. COMPUTER
SUB : COMPUTER NETWORKS Roll No :
Date of conductance : / /2023 Date of submission : /0 /2023
******************************************************************
Aim :
a) Set up multiple IP addresses on a single LAN.
b) Using netstat and route commands of Linux, do the following:
• View current routing table
• Add and delete routes
• Change default gateway
c) Perform packet filtering by enabling IP forwarding using IPtables in Linux.
Theory:-
2. Select Ipv4
Click on the Ipv4 tab to access different methods for fetching IP address on your
Linux system.
netstat -rn
Adding route:
Command:
sudo route add -net 192.168.3.0 gw 192.168.1.1 netmask 255.255.255.0 dev eth0
Deleting route:
Command:
sudo route del -net 192.168.3.0 gw 192.168.1.1 netmask 255.255.255.0 dev eth0
3. Make sure the gateway on rhce2 is set to the private network address of rhce1 and
that rhce2 can resolve names.
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.190 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
#
# nslookup oracle.com
Server: 192.168.0.4
Address: 192.168.0.4#53
Non-authoritative answer:
Name: oracle.com
Address: 137.254.16.101
#