VLANif

vlan端口:是物理端口,通常我们通过配置access vlan 10 使某个物理接口属于vlan 10
vlan if : interface vlan 是逻辑端口,通常这个接口地址作为vlan 下面用户的网关,例如
interface vlan 10
ip add 192.168.10.254 255.255.255.0
no shut


有一批华为的S2326要配,你要的配置命令如下:

登陆到交换机后,使用如下命令:

system-view 进入配置模式

interface Ethernet 0/1 进入端口0/1

port link-type mode access 把该端口设为access 模式

port default vlan 100 把该口设为vlan100端口


2326确实是只能配一个地址,但是不仅仅只是vlan1,其它的vlan也行,但是如果配在其它的vlan上面,得先把interface vlan 1删掉。

如要在vlan30上面配个地址:

undo interface vlanif 1

vlan 30

interface vlanif 30

ip address *.*.*.*

就OK了。

*/

你这个应当是二层的交换机吧?这个地址也只能用来管理?你把你的vlanif改成432。

[Wangluobu]undo vlanif(删除默认VLAN)

[Wangluobu]vlan 432 (新建vlan)

[Wangluobu]int vlanif 432

[Wangluobu-Vlanif432]ip add 172.16.202.105 255.255.255.0

你的默认网管没写,你还需要加一条路由

ip rou 0.0.0.0 0.0.0.0 172.16.202.x(默认网关地址)


*

你说的网关默认地址是不是掩码。。



Wangluobusystem-view
Enter system view, return user view with Ctrl Z.
[Wangluobu]vlan 1
[Wangluobu-vlan1]q
[Wangluobu]int vlan 1
[Wangluobu-Vlanif1]ip add 172.16.202.105 255.255.255.0
[Wangluobu-Vlanif1]
Jan 8 2008 17:19:01 Wangluobu %%01IFNET/4/LINK_STATE(l): Line protocol on interface Vlanif1 has turned into UP state.

[Wangluobu-Vlanif1]q
[Wangluobu]q
Wangluobusa
Wangluobusave
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the device.
Jan 8 2008 17:20:09 Wangluobu %%01CFM/4/SAVE(l): When deciding whether to save configuration to the device, the user chose Y.........................

*


相关主题
相关文档
最新文档