CISCO 3560G 交换机,谁能帮忙解释下这些命令。谢谢!

Switch#show run
Building configuration...

Current configuration : 3889 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
no aaa new-model
system mtu routing 1500
ip subnet-zero
ip routing
!
ip dhcp pool vlan1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 61.235.70.252
!
ip dhcp pool vlan3
network 192.168.3.0 255.255.255.0
dns-server 61.235.70.252
default-router 192.168.3.1
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface GigabitEthernet0/1
switchport access vlan 100
switchport mode access

!
interface GigabitEthernet0/4
switchport access vlan 100
switchport mode access
!
interface GigabitEthernet0/5
!
switchport access vlan 5
switchport mode access
speed 100
duplex full
!
interface GigabitEthernet0/11
switchport access vlan 5
switchport mode access
speed 100
duplex full
!
interface GigabitEthernet0/12
switchport access vlan 5
switchport mode access
speed 100
duplex full
!
interface GigabitEthernet0/25
!
interface GigabitEthernet0/26
!
interface GigabitEthernet0/27
!
interface GigabitEthernet0/28
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
ip address 192.168.3.1 255.255.255.0
!
interface Vlan4
ip address 192.168.0.1 255.255.255.0
!
interface Vlan100
ip address 192.168.100.1 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.254
no ip http server
!
access-list 100 deny ip 192.168.1.0 0.0.0.255 192.168.3.0 0.0.0.255
access-list 100 deny ip 192.168.2.0 0.0.0.255 192.168.3.0 0.0.0.255
access-list 120 permit ip 192.168.1.0 0.0.0.255 192.168.0.0 0.0.0.255
arp 192.168.3.33 001d.7d76.2866 ARPA
control-plane
!
!
line con 0
line vty 0 4
login
length 0
line vty 5 15
login
!
!
monitor session 1 source interface Gi0/21
monitor session 1 filter vlan 3
monitor session 1 destination interface Gi0/22
end

  大概说下吧。。。。

  Switch#show run
  Building configuration...

  Current configuration : 3889 bytes
  !
  version 12.2
  no service pad
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  !
  hostname Switch
  这段是看交换机的 running配置

  interface GigabitEthernet0/5
  !
  switchport access vlan 5
  switchport mode access
  speed 100
  duplex full

  这段是 把GigabitEthernet0/5这个端口
  加入vlan5中
  设置速度为100mbps
  工作模式为双工

  interface Vlan1
  ip address 192.168.1.1 255.255.255.0

  这是配置vlan1 的远程管理地址
  ip classless
  ip route 0.0.0.0 0.0.0.0 192.168.0.254
  no ip http server

  这里是设置无类路由。。默认路由发给192.168.0.254 这个地址

  ip dhcp pool vlan1 ------------------配置vlan1 的dhcp 池 名叫vlan1
  network 192.168.1.0 255.255.255.0 这个dhcp池的作用网段
  default-router 192.168.1.1 该dhcp池的默认路由 可以看做默认网关
  dns-server 61.235.70.252 配该dhcp池的dns服务器
  !

  下面同上
  ip dhcp pool vlan3
  network 192.168.3.0 255.255.255.0
  dns-server 61.235.70.252
  default-router 192.168.3.1

  access-list 100 deny ip 192.168.1.0 0.0.0.255 192.168.3.0 0.0.0.255

  上面这段是访问控制100 拒绝 ip地址为ip 192.168.1.0 到192.168.3.0的访问
  access-list 100 deny ip 192.168.2.0 0.0.0.255 192.168.3.0 0.0.0.255
  access-list 120 permit ip 192.168.1.0 0.0.0.255 192.168.0.0 0.0.0.255
  这上面的是访问控制列表

  line con 0
  line vty 0 4
  login
  length 0
  line vty 5 15
  login

  这段设置了可以 telnet 设置交换机
温馨提示:答案为网友推荐,仅供参考