ON ROUTER
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>en
Router#
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f 0/0.1 ?
<cr>
Router(config)#int f 0/0.1
Router(config-subif)#enc
Router(config-subif)#encapsulation dot1q 2 ?
native Make this as native vlan
<cr>
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip add 192.168.10.1 255.255.255.0 ?
<cr>
Router(config-subif)#ip add 192.168.10.1 255.255.255.0
Router(config-subif)#no shut ?
<cr>
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#
Router(config)#int f 0/0.2 ?
<cr>
Router(config)#int f 0/0.2
Router(config-subif)#enc
Router(config-subif)#encapsulation dot1q 3 ?
native Make this as native vlan
<cr>
Router(config-subif)#encapsulation dot1q 3
Router(config-subif)#ip add 192.168.20.1 255.255.255.0 ?
<cr>
Router(config-subif)#ip add 192.168.20.1 255.255.255.0
Router(config-subif)#no shut ?
<cr>
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#
ON SWITCH
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2 ?
<cr>
Switch(config)#vlan 2
Switch(config-vlan)#name Sales ?
<cr>
Switch(config-vlan)#name Sales
Switch(config-vlan)#ex
Switch(config)#vlan 3 ?
<cr>
Switch(config)#vlan 3
Switch(config-vlan)#name Marketing ?
<cr>
Switch(config-vlan)#name Marketing
Switch(config-vlan)#ex
Switch(config)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#sh vl
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
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
Gig1/1, Gig1/2
2 Sales active
3 Marketing active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
2 enet 100002 1500 - - - - - 0 0
3 enet 100003 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range f 0/2-f 0/3 ?
<cr>
Switch(config)#int range f 0/2-f 0/3
Switch(config-if-range)#ip add 192.168.10.0 255.255.255.0 ?
% Unrecognized command
Switch(config-if-range)#ip add 192.168.10.0 ?
% Unrecognized command
Switch(config-if-range)#
Switch(config-if-range)#?
cdp Global CDP configuration subcommands
channel-group Etherchannel/port bundling configuration
channel-protocol Select the channel protocol (LACP, PAgP)
description Interface specific description
duplex Configure duplex operation.
exit Exit from interface configuration mode
mdix Set Media Dependent Interface with Crossover
mls mls interface commands
no Negate a command or set its defaults
shutdown Shutdown the selected interface
spanning-tree Spanning Tree Subsystem
speed Configure speed operation.
storm-control storm configuration
switchport Set switching mode characteristics
tx-ring-limit Configure PA level transmit ring limit
Switch(config-if-range)#sw
Switch(config-if-range)#switchport ?
access Set access mode characteristics of the interface
mode Set trunking mode of the interface
native Set trunking native characteristics when interface is in
trunking mode
nonegotiate Device will not engage in negotiation protocol on this
interface
port-security Security related command
priority Set appliance 802.1p priority
trunk Set trunking characteristics of the interface
voice Voice appliance attributes
Switch(config-if-range)#switchport mode ?
access Set trunking mode to ACCESS unconditionally
dynamic Set trunking mode to dynamically negotiate access or trunk mode
trunk Set trunking mode to TRUNK unconditionally
Switch(config-if-range)#switchport mode ^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range f 0/2-f 0/3
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode acc ?
<cr>
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#sw
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vlan 2 ?
<cr>
Switch(config-if-range)#switchport access vlan 2
Switch(config-if-range)#ip add ?
% Unrecognized command
Switch(config-if-range)#ex
Switch(config)#int range f 0/2-f 0/3 ^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#sh vl
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/4, 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, Gig1/1, Gig1/2
2 Sales active Fa0/2, Fa0/3
3 Marketing active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
2 enet 100002 1500 - - - - - 0 0
3 enet 100003 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range f 0/4-f 0/5
Switch(config-if-range)#sw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access ?
<cr>
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#sw
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vlan 3 ?
<cr>
Switch(config-if-range)#switchport access vlan 3
Switch(config-if-range)#ex
Switch(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#sh vl
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, 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
Gig1/1, Gig1/2
2 Sales active Fa0/2, Fa0/3
3 Marketing active Fa0/4, Fa0/5
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
2 enet 100002 1500 - - - - - 0 0
3 enet 100003 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f 0/1 ?
<cr>
Switch(config)#int f 0/1
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk ?
<cr>
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#ex
Switch(config)#
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.