文章收藏-FAQ 位置:电脑学习网

Hp9308 三层交换机配置实例

!
ver 07.8.00aT53
!
module 1 ep-8-port-gig-m4-management-module
module 2 ep-8-port-gig-m4-management-module
module 6 ep-16-port-gig-copper-module
!
!
trunk switch ethe 2/1 to 2/2
!
!
vlan 1 name DEFAULT-VLAN by port
router-interface ve 1
!
vlan 10 by port
untagged ethe 6/1
router-interface ve 10
!
vlan 11 by port
untagged ethe 6/2 to 6/5
router-interface ve 11
!
vlan 12 by port
tagged ethe 2/1 to 2/2
untagged ethe 6/12
router-interface ve 12
!
vlan 13 by port
tagged ethe 2/1 to 2/2
router-interface ve 13
!
vlan 14 by port
tagged ethe 2/1 to 2/2
router-interface ve 14
!
vlan 15 by port
tagged ethe 2/3
untagged ethe 6/15
router-interface ve 15
!
vlan 16 by port
tagged ethe 2/3
router-interface ve 16
!
vlan 17 by port
tagged ethe 2/3
router-interface ve 17
!
vlan 18 by port
tagged ethe 2/3
router-interface ve 18
!
vlan 19 by port
tagged ethe 2/3
router-interface ve 19
!
!
enable telnet password 8 $1$2/1..ny.$jlPEM5bvx6JHc9Ilat5Hz/
enable super-user-password 8 $1$7c1..wR0$5ghkVCTOpi2GU6Qc/07b3/
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
snmp-server community 1 $bSDn?=dbng“ rw
!
interface ethernet 2/1
dual-mode
!
interface ethernet 2/3
dual-mode
!
interface ve 1
ip address 10.0.0.254 255.255.255.0
!
interface ve 10
ip address 192.168.1.254 255.255.255.0
!
interface ve 11
ip address 172.16.11.254 255.255.255.0
!
interface ve 12
ip access-group 101 in
ip access-group 101 out
ip address 172.16.12.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 13
ip access-group 101 in
ip access-group 101 out
ip address 172.16.13.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 14
ip access-group 101 in
ip access-group 101 out
ip address 172.16.14.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 15
ip address 172.16.15.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 16
ip address 172.16.16.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 17
ip address 172.16.17.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 18
ip address 172.16.18.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 19
ip address 172.16.19.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
!
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 permit ip any any
!
!
end

     [文章来源:“十万个为什么”电脑学习网]
     [网络地址:http://why100000.com]
     [版权声明:除本站部分特别声明禁止转载的专稿外,其他的文章可以自由转载,但请务必注明出处和原始作者。本站文章版权归文章原作者所有。如果本站转载的文章有版权问题请联系本站,我们会尽快予以更正。]
 

【字体:[大] [中] [小] 【加入收藏】 【发表评论】 【关闭本窗口】

Copyright © “十万个为什么”电脑学习网 2000-2007 陕ICP备06007929号
站务联系:MSN & Email:zhangking2008@gmail.com  QQ:9365822