打印

[讨论] 该配置文件的作用是?

该配置文件的作用是?

S2924G#show running

Building configuration...
Current configuration : 1926 bytes

!
version RGNOS 10.1.00(4), Release(18712)(Tue Jul 24 19:06:50 CST 2007 -ubu1servr)

co-operate enable
!
!
!
vlan 1
!
vlan 2
!
vlan 3
!
!
!
!
!
enable secret 5 $1$yy23$yx05r0p7Fwvz05p5

!
interface GigabitEthernet 0/1
!
interface GigabitEthernet 0/2
switchport access vlan 2
!
interface GigabitEthernet 0/3
switchport access vlan 2
!
interface GigabitEthernet 0/4
switchport access vlan 2
!
interface GigabitEthernet 0/5
switchport access vlan 2
!
interface GigabitEthernet 0/6
switchport access vlan 2
!
interface GigabitEthernet 0/7
switchport access vlan 2
!
interface GigabitEthernet 0/8
switchport access vlan 2
!
interface GigabitEthernet 0/9
switchport access vlan 2
!
interface GigabitEthernet 0/10
switchport access vlan 2
!
interface GigabitEthernet 0/11
switchport access vlan 3
!
interface GigabitEthernet 0/12
switchport access vlan 3
!
interface GigabitEthernet 0/13
switchport access vlan 3
!
interface GigabitEthernet 0/14
switchport access vlan 3
!
interface GigabitEthernet 0/15
switchport access vlan 3
!
interface GigabitEthernet 0/16
switchport access vlan 3
!
interface GigabitEthernet 0/17
switchport access vlan 3
!
interface GigabitEthernet 0/18
switchport access vlan 3
!
interface GigabitEthernet 0/19
switchport access vlan 3
!
interface GigabitEthernet 0/20
switchport access vlan 3
!
interface GigabitEthernet 0/21
switchport access vlan 3
!
interface GigabitEthernet 0/22
switchport access vlan 3
!
interface GigabitEthernet 0/23
switchport access vlan 3
!
interface GigabitEthernet 0/24
switchport mode trunk

!
interface VLAN 1
ip address 192.168.1.2 255.255.255.0
!
interface VLAN 2
ip address 192.168.2.253 255.255.255.0
no shutdown
!
interface VLAN 3
!
!
line con 0
line vty 0
login
password 7 01334157310951665a
line vty 1 4
login
!
!
end
S2924G#show ?
AggregatePort AggregatePort IEEE 802.3ad
aaa AAA Information
access-group Show ACL applied on interface
access-lists Show access list
address-bind address binding table
arp ARP table
buffer show port buffer management mode
class-map Show QoS Class Map
clock Display the system clock
cpu CPU using rate
cpu-protect cpu protect
crypto crypto information
debugging State of each debugging option
devices Show devices information
dhcp Dynamic Host Configuration Protocol status
dot1x show dot1x
drvtab print the device table
expert expert extended ACL
gvrp GVRP configure command
history Display the session command history
hookset show hookset
hosts IP dns nameservers, and host table
interfaces Interface status and configuration
ip IP information
ipv6 Internet Protocol Version 6
key Key information
line TTY line information
logging Show the contents of logging buffers
mac mac extended ACL
mac-address-table MAC forwarding table
member Show member information
memory Memory statistics
mls Show MultiLayer Switching information
monitor Show a SPAN session
ntp Network time protocol
policy-map Show QoS Policy Map
port-security Show secure port information
privilege show current privilege level
protocol-vlan Show Protocol-vlan information
radius show radius
reload Display Reload Information
reserved-vid show reserved vid
rldp show rldp information
rmon show rmon statistics
route-map route-map information
running-config Current operating configuration
section user define section infomation
security show security
service Show network management services
sessions Information about Telnet connections
slots Show slots information
smp-server display smp-server ip
snmp snmp statistics
sntp show sntp configuration
spanning-tree Spanning tree topology
ssh Status of SSH server connections
stack show stack interfaces
startup-config Contents of startup configuration
storm-control Show packet storm control configuration
subsystem show subsystem statistics
task Task statistics
tc-statistics Show interface rate-limit info
time-range timerange information
traffic-shape Show traffic rate shaping configuration
users Display information about terminal lines
version Display Version Information
vlan VLAN status
诸上座终日著衣吃饭,未曾咬着一粒米,未曾挂着一缕丝

TOP

这个交换机上的配置主要说明了VLAN的划分,交换机接口的分配,中继的启用,还有一些密码的配置。
从配置信息看,在交换机上划分了3个vlan,接口g0/1~10被划分到vlan2,接口G0/11~23划分到vlan3
接口G0/24配成中继模式,就默认启用802.1q中级封装,且vlan1为本征VLAN,还为交换机配了特权加密密码和虚拟终端明文密码

TOP

还有VLAN1,2,3都相应的配了管理ip地址

TOP