免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 7696 | 回复: 13
打印 上一主题 下一主题

4006划分vlan [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-06-25 13:32 |只看该作者 |倒序浏览
交换机部分:

begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
!
#time: Thu Nov 1 2001, 00:00:10
!
#version 6.3(2)
!
!
#system web interface version(s)
set enablepass $2$nINM$ofyLjkYbN74lrHCw4/dhE0
!
#test
!
#frame distribution method
set port channel all distribution mac both
!
#vtp
set vtp domain anyang
set vtp v2 enable
set vlan 1 name default type ethernet mtu 1500 said 100001 state active
set vlan 9 name admin type ethernet mtu 1500 said 100009 state active
set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active
set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state active bridge 0x0 stp ieee
set vlan 1005 name trbrf-default type trbrf mtu 4472 said 101005 state active bridge 0xf stp ibm
set vlan 2-8
set vlan 1003 name trcrf-default type trcrf mtu 4472 said 101003 state active parent 1005 ring 0xccc mode srb aremaxhop 7 stemaxhop 7 backupcrf off
!
#ip
set interface sc0 8 192.168.0.251/255.255.255.0 192.168.0.255

set interface sl0 down
set interface me1 192.168.0.2 255.255.255.0 192.168.0.255

set interface me1 down
set ip route 0.0.0.0/0.0.0.0         192.168.0.254  
!
#syslog
set logging level cops 2 default
!
#set boot command
set boot config-register 0x2
set boot system flash bootflash:cat4000.6-3-2.bin
!
#port channel
set port channel 1/1-2 6
set port channel 2/3-4 36
set port channel 2/5-8 39
set port channel 2/9-12 40
set port channel 2/13-16 41
set port channel 2/17-20 42
set port channel 2/21-24 43
set port channel 2/25-28 44
set port channel 2/29-32 45
set port channel 2/33-34 46
set port channel 2/1-2 47
!
#http configuration
set ip http server enable
!
#module 1 : 2-port 1000BaseX Supervisor
set trunk 1/1  on dot1q 1-1005
set trunk 1/2  on dot1q 1-1005
set port channel 1/1-2 mode off
!
#module 2 : 34-port Router Switch Card
set vlan 7    2/3-13
set vlan 8    2/14-34
set trunk 2/1  on dot1q 1-1005
set trunk 2/2  on dot1q 1-1005
set trunk 2/3  on dot1q 1-1005
set port channel 2/1-2 mode on
set port channel 2/3-34 mode off
!
#module 3 empty
!
#module 4 empty
!
#module 5 empty
!
#module 6 empty
end



三层模块部分:



!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
ip subnet-zero
!
!
!
interface Port-channel1
no ip address
no ip directed-broadcast
hold-queue 300 in
!
interface Port-channel1.1
encapsulation dot1Q 1 native
ip address 192.168.1.254 255.255.255.0
no ip redirects
no ip directed-broadcast
!
interface Port-channel1.2
encapsulation dot1Q 2
ip address 192.168.2.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.3
encapsulation dot1Q 3
ip address 192.168.3.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.4
encapsulation dot1Q 4
ip address 192.168.4.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.5
encapsulation dot1Q 5
ip address 192.168.5.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.6
encapsulation dot1Q 6
ip address 192.168.6.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.7
encapsulation dot1Q 7
ip address 192.168.7.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.8
encapsulation dot1Q 8
ip address 192.168.0.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.9
encapsulation dot1Q 9
ip address 192.168.9.254 255.255.255.0
no ip directed-broadcast
!
interface Port-channel1.100
no ip redirects
no ip directed-broadcast
shutdown
!
interface Port-channel27
no ip address
no ip directed-broadcast
hold-queue 300 in
!
interface FastEthernet1
no ip address
no ip directed-broadcast
!
interface GigabitEthernet1
no ip address
no ip directed-broadcast
shutdown
!
interface GigabitEthernet2
no ip address
no ip directed-broadcast
shutdown
!
interface GigabitEthernet3
no ip address
no ip directed-broadcast
no negotiation auto
channel-group 1
!
interface GigabitEthernet4
no ip address
no ip directed-broadcast
no negotiation auto
channel-group 1
!
ip default-gateway 192.168.0.254
ip classless
!
!
line con 0
transport input none
line aux 0
line vty 0 4
login
!
end

论坛徽章:
0
2 [报告]
发表于 2002-06-25 13:56 |只看该作者

4006划分vlan

提醒一点,三层路由模块的千兆接口如果设置了port-channel,那么access-list等功能就无法在port-channel上实行了

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2002-06-25 13:59 |只看该作者

4006划分vlan

好像连vlan都做不了。:(

论坛徽章:
0
4 [报告]
发表于 2002-11-29 17:11 |只看该作者

4006划分vlan

不会吧,楼上的帖子不是你写的嘛,自己抽自己嘴巴啊~~~晕!

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
5 [报告]
发表于 2002-11-29 23:28 |只看该作者

4006划分vlan

?我说错什么了?

论坛徽章:
0
6 [报告]
发表于 2002-12-24 12:48 |只看该作者

4006划分vlan

能不能解释一下呀?比如port-channel是什么?
设置的目的是什么?有4006的详细配置说明么?

论坛徽章:
0
7 [报告]
发表于 2002-12-24 12:52 |只看该作者

4006划分vlan

port-channel指以太信道

论坛徽章:
0
8 [报告]
发表于 2002-12-24 12:56 |只看该作者

4006划分vlan

版主,回答的太简单了吧?为什么要有这个配置,感觉4006好怪,总是搞不定

论坛徽章:
0
9 [报告]
发表于 2002-12-24 13:00 |只看该作者

4006划分vlan

4006如果只是做第二层交换配置是最简单的。
配置faster-ethernet chancel
通俗一点两个方面:带宽和冗余

论坛徽章:
0
10 [报告]
发表于 2002-12-24 13:03 |只看该作者

4006划分vlan

楼上的兄弟有这方面的资料么?难道是我的问题没说清楚?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP