ethernet 1/0/1代表一个1槽位0子板1号以太网口.
vlan 100相应端口
[H3C]dis int e1/0/24
3600+CISCO2650外网配置问题
3600 e1/0/23 接 CISCO 2650 上F0/0
3600配置:
interface Vlan-interface2
ip address 192.168.10.1 255.255.254.0
#
interface Vlan-interface3
ip address 192.168.20.1 255.255.254.0
interface Vlan-interface10
ip address 192.168.1.2 255.255.255.0
interface Ethernet1/0/23
port access vlan 10
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
2650配置:
int f0/0
ip add 192.168.1.1 255.255.255.0
ip route 192.168.0.0 0.0.0.255 192.168.1.2
s3600配置:
[ ]vlan 10
[ ]quit
[ ]int vlan 10
[ ]ip add 192.168.10.1 24
[ ]quit
[ ]vlan 20
[ ]quit
[ ]int vlan 20
[ ]ip add 192.168.20.1 24
[ ]quit
[ ]vlan 30
[ ]quit
[ ]int vlan 30
[ ]ip add 192.168.30.1 24
[ ]quit
[ ]vlan 40
[ ]quit
[ ]int vlan 40
[ ]ip add 192.168.40.1 24
[ ]quit
[ ]vlan 50
[ ]quit
[ ]int vlan 50
[ ]ip add 192.168.50.1 24
[ ]quit
[ ]int vlan 1
[ ]ip add 192.168.0.1 24
[ ]quit
[ ]vlan 2
[ ]port e1/0/6
[ ]quit
[ ]int vlan 2
[ ]ip add 172.16.0.2 30
[ ]rip version 2
[ ]rip work
[ ]quit
[ ]rip
[ ]undo summary
[ ]network 172.16.0.0
[ ]network 192.168.0.0
[ ]network 192.168.10.0
[ ] network 192.168.20.0
[ ] network 192.168.30.0
[ ] network 192.168.40.0
[ ] network 192.168.50.0
[ ]quit
[ ]ip route-static 0.0.0.0 0.0.0.0 172.16.0.1
[ ]int e1/0/1
[ ]port link-type trunk
[ ]port trunk permit vlan 10
[ ]quit
[ ]int e1/0/2
[ ]port link-type trunk
[ ]port trunk permit vlan 20
[ ]quit
[ ]int e1/0/3
[ ]port link-type trunk
[ ]port trunk permit vlan 30
[ ]quit
[ ]int e1/0/4
[ ]port link-type trunk
[ ]port trunk permit vlan 40
[ ]quit
[ ]int e1/0/5
[ ]port link-type trunk
[ ]port trunk permit vlan 50
[ ]quit
[ ]user-interface vty 0 4
[ ]authentication-mode password
[ ]set authentication pass ciper huawei
[ ]user privelege level 3
[ ]quit
[ ]quit
< >save
s3100配置:
[ ]int vlan 1
[ ]ip add 192.168.0.2 24
[ ]quit
[ ]vlan 10
[ ]port e1/0/2 to e1/0/24
[ ]quit
[ ]int vlan 2
[ ]port link-type trunk
[ ] port trunk permit vlan 10
[ ]quit
[ ]ip route-static 0.0.0.0 0.0.0.0 192.168.0.1
[ ]user-interface vty 0 4
[ ]authentication-mode password
[ ]set authentication pass ciper huawei
[ ]user privelege level 3
[ ]quit
[ ] quit
< >save
其余3100配置雷同,只需要修改相应的vlan和管理vlan的地址
划VLAN的目的在于分割局域网,
red sole shoes,最重要的目的在于能够阻挡广播和单薄流量不会被其他VLAN接收,有助于控制网络流量,减少设备投资,简 化网络管理,
christian louboutin sale,提高网络安全性,
christian louboutin uk!!!
可以参考思科与3COM的VLAN配置学华为的,华为的交换机\路由器的配置与思科的差不多
答案补充
H3C 3600三层实例:
假设路由器内网IP:192.168.1.1/24
3600划分了两个VLAN:VLAN1:192.168.1.2/24 VLAN2:192.168.2.1/24
3600
int vlan 1
ip add 192.168.1.2 255.255.255.0
undo shut
vlan 2
int vlan 2
ip add 192.168.2.1 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
备注:忽略端口划分,路由器与交换机相连,
cheap christian louboutin,在必须使用3600交换机的属于VLAN1端口与路由器相联。
vlan 1
vlan 2
int e1/0/1
port link-type trunk
port trunk permit vlan all
再把相应端口划分到相应的VLAN即可实现互通。
其他答案
你可以设置单臂路由,配置命令:
交换机:
在特权模式下
Switch#vlan database
Switch(vlan)#vlan 2 (因为有默认的vlan 1,直接设2和3,省得以后麻烦)
Switch(vlan)#vlan 3
Switch(vlan)#exit
Switch#config terminal
Switch(config)#interface fa0/1 (假设0/1是交换机与vlan 1里pc连接的接口)
Switch(config-if)#switchport accress vlan 1
......(在vlan 1里的接口都是这么设的)
Switch(config)#interface fa0/2 (假设0/2是交换机与vlan 2里pc连接的接口)
Switch(config-if)#switchport access vlan 2
......(在vlan 2里的接口也都是这么设)
Switch(config)#interface fa0/0 (假设接口0/0是与路由相接的接口)
Switch(config-if)#switchpore mode trunk
路由器:
Router(config)#interface fa0/0 (假设接口0/0是与交换机相接的接口)
Router(config-if)#no shutdown (把这个接口激活)
Router(config-if)#interface fa0/0.1 (设置子接口)
Router(config-if)#encapsolution dot1q vlan 2 (在接口上用802.1Q封装)
Router(config-if)#ip address 192.168.1.1 255.255.255.0 (举的例子,应该能看懂吧,前面是子接口的ip地址,后面是子网掩码,这个ip也就是vlan2里所有pc 的网关)
Router(config-if)#no shutdown
后面同理
Router(config-if)#interface fa0/0.2
Router(config-if)#encapsolution dot1q vlan 3
Router(config-if)#ip address 192.168.2.1 255.255.255.0 (这个ip是vlan3里所有pc的网关)
Router(config-if)#no shutdown
然后就是给pc配置ip了,
louboutin shoes,vlan2里pc的网关一定要设成192.168.1.1。vlan3里的pc的网关要设成192.16 8.2.1,
christian louboutin pumps!
Switch(config)#interface fa0/0 (假设接口0/0是与路由相接的接口)
这里是否该加一句switchport trunk encapslution dot 1q
我认为不用加,因为在这里只需要接口与路由trunk一下就好了,不需要再用802.1q来封 装了。