VLAN

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 8

ROUTER 0

Press RETURN to get started!

Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/1/0
Router(config-if)#no shutdown
Router(config-if)#ip address 192.168.20.1 255.255.255.0
Router(config-if)#ip address 192.168.20.1 255.255.255.0
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up

Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state


to up
ip address 192.168.2.1 255.255.255.0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#
Router(config-if)#EXEexit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#ping 192.168.20.2

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 192.168.20.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/18/90 ms

Router#%IP-4-DUPADDR: Duplicate address 192.168.2.1 on GigabitEthernet0/0/0,


sourced by 00D0.585A.5756
%IP-4-DUPADDR: Duplicate address 192.168.2.1 on GigabitEthernet0/0/0, sourced by
00D0.585A.5756

Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.2
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#ip route 192.168.1.1 255.255.255.0 192.168.20.1
%Inconsistent address and mask
Router(config)#ip route 192.168.1.1 255.255.255.0 192.168.20.1
%Inconsistent address and mask
Router(config)#no ip route 192.168.2.0 255.255.255.0 192.168.2.2
Router(config)#ip route 192.168.1.1 255.255.255.0 192.168.20.1
%Inconsistent address and mask
Router(config)#
Router(config)#
Router(config)#
Router(config)#ip route 192.168.0.0 255.255.255.0 192.168.20.1
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.20.1
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
Router(config)#
Router(config)#interface Serial0/1/0
Router(config-if)#
%LINK-3-UPDOWN: Interface Serial0/1/0, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to down

%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up

Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#

Router con0 is now available

Press RETURN to get started.

ROUTER 1

Press RETURN to get started!


Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/1/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#

Router con0 is now available

Press RETURN to get started.

Press RETURN to get started!

Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#ip route 192.168.1.0 255.255.255.0 192.169.1.1
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.1.1
Router(config)#no ip route 192.168.1.0 255.255.255.0 192.169.1.1
Router(config)#
Router(config)#
Router(config)#
Router(config)#no ip route 192.168.1.0 255.255.255.0 192.168.1.1
Router(config)#ip route 192.168.2.2 255.255.255.0 192.168.20.2
%Inconsistent address and mask
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.20.0 255.255.255.0 192.168.2.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.20.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.20.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.2.1 255.255.255.0 192.168.20.2
%Inconsistent address and mask
Router(config)#ip route 192.168.2.1 255.255.255.0 192.168.2.2
%Inconsistent address and mask
Router(config)#ip route 192.168.2.1 255.255.255.0 192.168.2.2
%Inconsistent address and mask
Router(config)#ip route 192.168.2.1 255.255.255.0 192.168.2.2
%Inconsistent address and mask
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.2.2 255.255.255.0 192.168.2.2
%Inconsistent address and mask
Router(config)#ip route 192.168.2.1 255.255.255.0 192.168.2.2
%Inconsistent address and mask
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#
Router(config)#ip route 192.168.2.1 255.255.255.0 192.168.2.2
%Inconsistent address and mask
Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.2
%Invalid next hop address (it's this router)
Router(config)#
Router(config)#interface Serial0/1/0
Router(config-if)#clock rate 128000
Router(config-if)#shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to down


no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up

Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#
Router(config-if)#end
Router#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Router(vlan)#
%SYS-5-CONFIG_I: Configured from console by console

Router(vlan)#exit
APPLY completed.
Exiting....
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#
Router(config-router)#end
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#
%SYS-5-CONFIG_I: Configured from console by console
ip route 192.168.1.0 255.255.255.0 192.168.2.2
%Invalid next hop address (it's this router)
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.20.1
Router(config)#
Router(config)#end
Router#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Router(vlan)#
%SYS-5-CONFIG_I: Configured from console by console

Router(vlan)#exit
APPLY completed.
Exiting....
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial0/1/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#

Router con0 is now available


Press RETURN to get started.

SWITCH 0

Switch>enable
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface FastEthernet0/1
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/6
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/4
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/3
Switch(config-if)#

Switch con0 is now available

Press RETURN to get started.

SWITCH 1

Press RETURN to get started!

%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to


up

%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to


up

%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to


up

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to


up

Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name BORBON
Switch(config-vlan)#exit
Switch(config)#interface fastethernet0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface fastethernet0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#show vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24, Gig0/1, Gig0/2
10 BORBON active Fa0/3, Fa0/4
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
Switch#

Switch con0 is now available

Press RETURN to get started.

%LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to


down

%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to


up

%LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to


down

%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to


up

You might also like