千家论坛_弱电智能化技术与工程讨论(建筑智能,家居智能,人工智能)

路由交换
收藏本版 (7) |订阅

路由交换 今日: 3703 |主题: 18312|排名: 28 

发新帖
打印 上一主题 下一主题

[分享]Hp9308三层交换机配置实例...

[复制链接]
幽扬 发布于: 2011-6-21 10:02 851 次浏览 1 位用户参与讨论
跳转到指定楼层
 

Hp9308三层交换机配置实例

                                      

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

 

回复

使用道具 举报

已有1人评论

新浪微博达人勋

千家认证

沙发
wxzhong1987 发表于 2011-6-21 17:02:00
沙发不好坐啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆 千家通行证登陆

本版积分规则

千家智客微信号
千家智客微信
玩物说商城
玩物说商城