我无法弄清楚如何使用 Allied Telesyn at9924 交换机在 VLAN 上添加多个 IPv4 子网
我使用此命令添加了第一个 IP:
添加 ip int=vlan15 ip=xxx.243.117.193 掩码=255.255.255.248
现在,我想在同一个 VLAN (15) 上添加另一个 /29 子网。当我尝试相同的命令时,我得到了以下信息:
添加 ip int=vlan15 ip=xxx.79.99.17 掩码=255.255.255.248
错误 (3005263):接口已连接到 IP 模块。
答案1
每个接口只能分配一个 IP,但我相信每个接口最多可以有 16 个逻辑接口(即 vlan1、ppp0 等)。
只需附加-#
到接口名称即可,如下所示:
Manager switch1> show ip int
Interface Type IP Address Bc Fr PArp Filt RIP Met. SAMode IPSc
Pri. Filt Pol.Filt Network Mask MTU VJC GRE OSPF Met. DBcast Mul.
GArp NotifyOSPFDown
--------------------------------------------------------------------------------
LOCAL --- Not set - - - --- -- Pass --
--- --- Not set 1500 - --- -- --- ---
On
vlan1 Remote 10.1.1.113 1 n Off --- 01 Pass No
--- --- 255.255.255.0 1500 - --- 0000000001 No Rec
On Yes
--------------------------------------------------------------------------------
Manager switch1> add ip int=vlan1-1 ip=192.168.55.1 mask=255.255.255.0
Info (1005275): interface successfully added.
Manager switch1> show ip int
Interface Type IP Address Bc Fr PArp Filt RIP Met. SAMode IPSc
Pri. Filt Pol.Filt Network Mask MTU VJC GRE OSPF Met. DBcast Mul.
GArp NotifyOSPFDown
--------------------------------------------------------------------------------
LOCAL --- Not set - - - --- -- Pass --
--- --- Not set 1500 - --- -- --- ---
On
vlan1-0 Remote 10.1.1.113 1 n Off --- 01 Pass No
--- --- 255.255.255.0 1500 - --- 0000000001 No Rec
On Yes
vlan1-1 Static 192.168.55.1 1 n Off --- 01 Pass No
--- --- 255.255.255.0 1500 - --- 0000000001 No Rec
On Yes
--------------------------------------------------------------------------------
接口vlan1
自动改为,vlan1-0
表示有逻辑接口。
答案2
您不需要让交换机了解 VLAN 上的所有子网。
即使没有这些知识,它也能完美地切换流量。