Information Technology Reference
In-Depth Information
Example 3-21
The Catalyst
show interface
Command
cat5000: (enable) show interface
sl0: flags=51<UP,POINTOPOINT,RUNNING>
slip 0.0.0.0 dest 0.0.0.0
sc0: flags=63<UP,BROADCAST,RUNNING>
vlan 1 inet 172.16.19.5 netmask 255.255.255.0 broadcast 172.16.19.255
sc0
UP
inet 172.16.19.5 netmask 255.255.255.0 broadcast 172.16.19.255
The default gateway is configured with the
set ip default
command:
set ip default gateway
A CatOS
switch
command that is similar to the
router
command
show ip interface brief
is
show port status
, as shown in Example 3-22. This command provides a summary table of
switch ports, their status, configured virtual local-area network (VLAN), and type. Example 3-22
shows that switch ports 2/4 and 2/9 are in VLAN 24.
Example 3-22
CatOS
show port status
Command
cat5000: (enable) show port status
Port Name Status Vlan Level Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- -----------
1/1 notconnect 1 normal half 100 100BaseTX
1/2 notconnect 1 normal half 100 100BaseTX
2/1 connected 1 normal half 10 10BaseT
2/2 notconnect 1 normal half 10 10BaseT
2/3 connected 1 normal half 10 10BaseT
2/4 connected 24 normal half 10 10BaseT
2/5 connected 1 normal half 10 10BaseT
2/6 notconnect 1 normal half 10 10BaseT
2/7 connected 1 normal half 10 10BaseT
2/8 notconnect 1 normal half 10 10BaseT
2/9 connected 24 normal half 10 10BaseT
2/10 connected 1 normal half 10 10BaseT
2/11 connected 1 normal half 10 10BaseT
2/12 connected 1 normal half 10 10BaseT
2/13 notconnect 1 normal half 10 10BaseT
2/14 notconnect 1 normal half 10 10BaseT
2/15 notconnect 1 normal half 10 10BaseT
2/16 notconnect 1 normal half 10 10BaseT
2/17 notconnect 1 normal half 10 10BaseT
2/18 notconnect 1 normal half 10 10BaseT
Port
2/4 connected 24
2/9 connected 24
Configuring a VLAN
VLANs are configured with the
set vlan
command. Example 3-23 shows the command
structure for the
set vlan
command. Ports 2/20-24 are assigned to Ethernet VLAN 101. The
configuration is verified with the
show vlan
command. The
set vlan 101 name ccie said 10
type enet
command configures VLAN 101 with the name ccie and a unique SAID of 10; the
Search WWH ::
Custom Search