神州数码交换机vlan配置.访问列表.

DCRS-5526S#show run
Current configuration:
!
   enable password level admin 1ee92fa22d0125f1e3da2a768b2aeb52
   hostname DCRS-5526S
!
   telnet-user bjh password 7 1ee92fa22d0125f1e3da2a768b2aeb52
!
!
Vlan 1
   vlan 1
!
Vlan 2
   vlan 2
!
Vlan 3
   vlan 3
!
Vlan 4
   vlan 4
!
Vlan 5
   vlan 5
!
Vlan 6          
   vlan 6
!
Vlan 7
   vlan 7
!
Vlan 8
   vlan 8
!

!
ip access-list standard permithost
   permit 192.168.1.0 0.0.0.63   
   permit 192.168.2.0 0.0.0.63
   permit 192.168.3.0 0.0.0.63
   permit 192.168.4.0 0.0.0.63
   permit 192.168.5.0 0.0.0.63
   permit 192.168.6.0 0.0.0.63
   permit 192.168.7.0 0.0.0.63
   permit 192.168.8.0 0.0.0.63
  
!
   firewall enable
   firewall default deny
!
Interface Ethernet0/0/1
   ip access-group permithost in
!
Interface Ethernet0/0/2
   ip access-group permithost in
!
Interface Ethernet0/0/3
   ip access-group permithost in
!
Interface Ethernet0/0/4
   ip access-group permithost in
!
Interface Ethernet0/0/5
   ip access-group permithost in
!
Interface Ethernet0/0/6
   ip access-group permithost in
!
Interface Ethernet0/0/7
   ip access-group permithost in
!
Interface Ethernet0/0/8
   ip access-group permithost in
!
Interface Ethernet0/0/9
   ip access-group permithost in
!
Interface Ethernet0/0/10
   ip access-group permithost in
!
Interface Ethernet0/0/11
   ip access-group permithost in
!
Interface Ethernet0/0/12
   ip access-group permithost in
!
Interface Ethernet0/0/13
   ip access-group permithost in
!
Interface Ethernet0/0/14
   ip access-group permithost in
!
Interface Ethernet0/0/15
   ip access-group permithost in
!
Interface Ethernet0/0/16
   switchport access vlan 2
   ip access-group permithost in
!
Interface Ethernet0/0/17
   switchport access vlan 2
   ip access-group permithost in
!
Interface Ethernet0/0/18
   switchport access vlan 3
ip access-group permithost in 
!
Interface Ethernet0/0/19
   switchport access vlan 3
   ip access-group permithost in
!
Interface Ethernet0/0/20
   switchport access vlan 4
   ip access-group permithost in
!
Interface Ethernet0/0/21
   switchport access vlan 5
   ip access-group permithost in
!
Interface Ethernet0/0/22
   ip access-group permithost in
!
Interface Ethernet0/0/23
   ip access-group permithost in
!
Interface Ethernet0/0/24
   speed-duplex force100-full
   switchport mode trunk
   ip access-group permithost in
!
!               
interface Vlan1
   interface vlan 1
   ip address 192.168.1.2 255.255.255.0
!
!
interface Vlan2
   interface vlan 2
   ip address 192.168.2.1 255.255.255.0
!
!
interface Vlan3
   interface vlan 3
   ip address 192.168.3.1 255.255.255.0
!
!
interface Vlan4
   interface vlan 4
   ip address 192.168.4.1 255.255.255.0
!
!
interface Vlan5
   interface vlan 5
   ip address 192.168.5.1 255.255.255.0
!
!
interface Vlan6
   interface vlan 6
   ip address 192.168.6.1 255.255.255.0
!
!
interface Vlan7
   interface vlan 7
   ip address 192.168.7.1 255.255.255.0
!
!
interface Vlan8
   interface vlan 8
   ip address 192.168.8.1 255.255.255.0
!
   ip route 192.168.8.0 255.255.255.0 192.168.1.3
   ip route 192.168.7.0 255.255.255.0 192.168.1.3
   ip route 192.168.6.0 255.255.255.0 192.168.1.3
   ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
  
!               

-----------------------------------------------------------------------------------------------------------------------------

 

DCS-3526-C#show run
Current configuration:
!
   enable password level admin 1ee92fa22d0125f1e3da2a768b2aeb52
   hostname DCS-3526-C
!
   telnet-user njh password 7 1ee92fa22d0125f1e3da2a768b2aeb52
!
!
Vlan 1
   vlan 1
!
Vlan 6
   vlan 6
!
Vlan 7
   vlan 7
!
Vlan 8
   vlan 8
!
!
Interface Ethernet0/1
   switchport access vlan 6
!
Interface Ethernet0/2
   switchport access vlan 6
!
Interface Ethernet0/3
   switchport access vlan 6
!
Interface Ethernet0/4
   switchport access vlan 7
!
Interface Ethernet0/5
   switchport access vlan 8
!
Interface Ethernet0/6
   switchport access vlan 8
!
Interface Ethernet0/7
   switchport access vlan 8
!
Interface Ethernet0/8
   switchport access vlan 8
!
Interface Ethernet0/9
   switchport access vlan 8
!
Interface Ethernet0/10
   switchport access vlan 8
!
Interface Ethernet0/11
   switchport access vlan 8
!
Interface Ethernet0/12
   switchport access vlan 8
!
Interface Ethernet0/13
   switchport access vlan 8
!
Interface Ethernet0/14
   switchport access vlan 8
!
Interface Ethernet0/15
   switchport access vlan 8
!
Interface Ethernet0/16
   switchport access vlan 8
!
Interface Ethernet0/17
   switchport access vlan 8
!
Interface Ethernet0/18
   switchport access vlan 8
!
Interface Ethernet0/19
   switchport access vlan 8
!
Interface Ethernet0/20
   switchport access vlan 8
!
Interface Ethernet0/21
   switchport access vlan 8
!
Interface Ethernet0/22
   switchport access vlan 8
!
Interface Ethernet0/23
   switchport access vlan 8
!
Interface Ethernet0/24
   switchport mode trunk
!
!
interface Vlan1
   interface vlan 1
   ip address 192.168.1.3 255.255.255.0
!
   ip default-gateway 192.168.1.2
!

!
DCS-3526-C#

 

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

fireup200

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值