Inter VL An Referred On 21
Inter VL An Referred On 21
conf t
ip routing command
to show if enabled or not..use command show running config
vlan2 10.1.2.2 sales
vlan 3 10.1.2.3 marketing//required design
conf t
vlan 2
name sales
exit
vlan 3
name marketing
exit
assign ports of switch
conf t
int f0/4
switchport access vlan 2
no shutdown //to enable the ports
exit
int f0/6
switchport access vlan 3
no shutdown
exit
//give ip address
int vlan 2
ip address 10.1.2.1 255.255.255.0
no shutdown//to enable interface
exit
int vlan 3
ip address 10.1.2.3 255.255.255.0
no shutdown
exit
show vlan//see activated vlan
show ip int br//to see status of interface
give ip addres to hosts
10.1.2.2//host 1
gateway=ip address of vlan 2
similarly host 2
now using ping command to check reachability of hosts from one another
can see the reply