网络部工作日记(二)

校园网接入层交换机的一份典型配置
(交换机型号神州数码DCS-3926S)
!
   hostname n9-17
!
   ip dhcp snooping enable
   ip dhcp snooping binding enable
!
   telnet-user admin password 0 X!
!
Vlan 1
   vlan 1
!
Vlan 109
   vlan 109                         
   name xuesheng
!
Vlan 1110
   vlan 1110
   name jiankong
!
!
Interface Ethernet0/0/1
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/2
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/3
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/4             
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/5
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/6
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/7
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/8
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109       
!
Interface Ethernet0/0/9
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/10
   ip dhcp snooping trust
   switchport mode trunk
!
Interface Ethernet0/0/11
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/12
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/13
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/14
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/15
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/16
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/17
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/18            
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/19
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/20
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/21
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/22
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109       
!
Interface Ethernet0/0/23
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
Interface Ethernet0/0/24
   ip dhcp snooping action shutdown recovery 10
   ip dhcp snooping binding user-control
   switchport access vlan 109
!
!
interface Vlan1110
   interface vlan 1110
   ip address X.X.X.X  X.X.X.X!
   ip default-gateway X.X.X.X!
即划分了VLAN,设置了远程访问帐号密码与管理地址,开启了DHCP监听与绑定功能,设定TURNK接口与DHCP信任端口以及默认网关。

你可能感兴趣的:(IP,Enable,password,交换机,校园网)