Lab commands - VLAN configurations
Switch#enable "enter to privilage mode"
Switch#configure terminal "Enter to Global configuration mode"
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan 1 "Go to interface mode of VLAN 1"
Switch(config-if)#ip address 10.1.1.1 255.255.255.0 "Assign IP address for interface VLAN 1 with the subnet mask"
Switch(config-if)#no shutdown "make the interface up"
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
VIEW CONFIGURATIONS
Switch#show interfaces VLAN 1 "Show details of interface VLAN 1"
Vlan1 is up, line protocol is down "Both vlan1 and line protocol must be up for working condition"
Hardware is CPU Interface, address is 0010.1116.ce76 (bia 0010.1116.ce76)
Internet address is 10.1.1.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 21:40:21, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1682 packets input, 530955 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
563859 packets output, 0 bytes, 0 underruns
0 output errors, 23 interface resets
0 output buffer failures, 0 output buffers swapped out
Switch#SHOW running-config "view running configurations of interface VLAN 1"
!
interface Vlan1
ip address 10.1.1.1 255.255.255.0
!
No comments:
Post a Comment