免费注册 查看新帖 |

Chinaunix

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

关于华为S9300交换机vlanif的ip设置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-05 11:39 |显示全部楼层 |倒序浏览
因以前的S5000的交换坏了,换了一个S9300出现的问题.
因为业务需要.有2个VLAN.vlan5和vlan20其IP分别为.192.168.153.199/255.255.255.128和192.168.153.254/255.255.255.0,以前S5000上可以在vlanif 接口里使用ip addr 分别在2个VLANIF加上地址。换了S9300后。不管在哪个VLANIF上设置这2个地址中的一个,在另一个接口上设另一个地址.就是提有接口在使用此地址段.换别一个地址段.
这两个vlan是2不个不同的VLAN。

论坛徽章:
0
2 [报告]
发表于 2010-05-05 12:01 |显示全部楼层
例:
interface vlanif 5
ip addr 192.168.153.199 255.255.255.128
interface vlanif 20
ip addr 192.168.153.254 255.255.255.0
提示错误

论坛徽章:
0
3 [报告]
发表于 2010-05-05 17:43 |显示全部楼层
quidway s5516

论坛徽章:
0
4 [报告]
发表于 2010-05-05 17:44 |显示全部楼层
[Quidway]dis cur
#
sysname Quidway
#
radius scheme system
server-type huawei
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain

domain system
radius-scheme system
access-limit disable
state active
idle-cut disable
self-service-url disable
messenger time disable

domain default enable system
#
local-server nas-ip 127.0.0.1 key huawei

local-user jfumong
password cipher R-S]T$FY*X_"*,C.<L8*$A!!
service-type telnet level 3
#
vlan 1
#
vlan 5
#
vlan 10
#
vlan 20
#
vlan 30
#
vlan 172
#
interface Vlan-interface5
ip address 192.168.153.199 255.255.255.128
#
interface Vlan-interface10
ip address 192.168.152.254 255.255.255.0
#
interface Vlan-interface20
ip address 192.168.153.254 255.255.255.0
#
interface Vlan-interface30
ip address 192.168.154.254 255.255.255.0
#
interface Vlan-interface172
ip address 172.16.5.38 255.255.255.252
#
interface Aux0/0
#
interface GigabitEthernet1/1
port access vlan 10
#
interface GigabitEthernet1/2
port access vlan 10
#
interface GigabitEthernet1/3
port access vlan 30
#
interface GigabitEthernet1/4
port access vlan 30
#
interface GigabitEthernet2/1
port access vlan 10
#
interface GigabitEthernet2/2
port access vlan 10
#
interface GigabitEthernet2/3
port access vlan 30
#
interface GigabitEthernet2/4
port access vlan 10
#
interface GigabitEthernet3/1
port access vlan 20
#
interface GigabitEthernet3/2
port access vlan 5
#
interface GigabitEthernet3/3
port access vlan 30
#
interface GigabitEthernet3/4
port access vlan 172
#
interface NULL0
#
arp static 192.168.152.101 00e0-4c78-0000
#
ip route-static 0.0.0.0 0.0.0.0 172.16.5.37 preference 60
#
user-interface aux 0
user-interface vty 0 4
authentication-mode scheme
#
return

论坛徽章:
0
5 [报告]
发表于 2010-05-05 17:49 |显示全部楼层
有两个地址在一个网段

论坛徽章:
0
6 [报告]
发表于 2010-05-06 02:07 |显示全部楼层
掩码用那个不行。我都试过用。252了。
128掩码是2个子网.192.168.153.0-127 和192.168.153.128-255
不管怎么改....254这个地址都在.192.168.153.128-255这个子网里.一直提示错误..
哎...我不知道.上面的那么交换机....是怎么了...我第一次帮么这种问题.而且没办法解决.客户单位的上级单位和客户单位都不准我们做以前的IP的分配变动。

论坛徽章:
0
7 [报告]
发表于 2010-05-06 02:10 |显示全部楼层
本帖最后由 RootZero 于 2010-05-06 02:36 编辑

而且我不知道这个.192.168.153.128-255有多少个机子在工作.这个子网上的机器最少要100台以上,还有就是.他们把.192.168.153.199这个地址作为接口地址.即网关.
而且...192.168.153.199和254是两个不同的VLAN.....254的这个子网从数据流上看最少不少于150台,而且客户单位不准改任何客户机和网络设备IP,而且我们也不想改,因为大部分机子都有还原卡.并且这些客户机都有很长的工作时间了.碰到客户端机子系统有问题的.老化,尘土等等这问题那问题.一定,肯定.以及确定要给人家维护.工程太大,还有这是一个重点中学。白天要上课。只能晚上干。。我已经三个晚上没怎么合眼了,晚上干一晚上。。调试.测试.安装.配置.一到早上的时间就要先把原有的老设备恢复上去.让白天学生老题上课上班用,这几天把那几个S9300和别别的设备加上他们的老设备抬上去了.搬下来了....装上了.拆下来了....都成民工了....愁死了.

论坛徽章:
0
8 [报告]
发表于 2010-05-08 01:39 |显示全部楼层
#
sysname Xnwz-S9306
#
vlan batch 5 10 20 30 100 1000
#
diffserv domain default
#
drop-profile default
#
interface Vlanif5
ip address 192.168.153.199 255.255.255.128
#
interface Vlanif10
ip address 192.168.152.254 255.255.255.0
#
interface Vlanif20
{注:用interface vlan 20进入此接口,输入ip addr 192.168.153.254 255.255.255.0提示错误
#
interface Vlanif30
ip address 192.168.154.254 255.255.255.0
#
interface Vlanif1000
ip address 10.1.1.2 255.255.255.252
#
interface Ethernet0/0/0
#
interface GigabitEthernet3/0/0
port link-type access
port default vlan 1000
combo copper
#
interface GigabitEthernet3/0/1
port link-type access
port default vlan 5
#
interface GigabitEthernet3/0/2
port link-type access
port default vlan 5
combo copper
#
interface GigabitEthernet3/0/3
port link-type access
port default vlan 10
combo copper
#
interface GigabitEthernet3/0/4
port link-type access
port default vlan 10
combo copper
#
interface GigabitEthernet3/0/5
port link-type access
port default vlan 20
combo copper
#
interface GigabitEthernet3/0/6
port link-type access
port default vlan 30
combo copper
#
interface GigabitEthernet3/0/7
port link-type access
port default vlan 30
combo copper
#
interface GigabitEthernet3/0/8
port link-type access
#
interface GigabitEthernet3/0/9
port link-type access
#
interface GigabitEthernet3/0/10
port link-type access
#
interface GigabitEthernet3/0/11
port link-type access
#
interface GigabitEthernet3/0/12
port link-type access
port default vlan 10
#
interface GigabitEthernet3/0/13
port link-type access
#
interface GigabitEthernet3/0/14
port link-type access
#
interface GigabitEthernet3/0/15
port link-type access
#
interface GigabitEthernet3/0/16
#
interface GigabitEthernet3/0/17
port link-type access
#
interface GigabitEthernet3/0/18
port link-type access
#
interface GigabitEthernet3/0/19
port link-type access
#
interface GigabitEthernet3/0/20
port link-type access
#
interface GigabitEthernet3/0/21
port link-type access
#
interface GigabitEthernet3/0/22
port link-type access
#
interface GigabitEthernet3/0/23
port link-type access
#
interface NULL0
#
aaa
local-user xnwz password cipher wkp6pv477w
local-user xnwz service-type terminal telnet ssh
local-user xnwz level 3
authentication-scheme default
#
authorization-scheme default
#
accounting-scheme default
#
domain default
#
#
ip route-static 0.0.0.0 0.0.0.0 10.1.1.1
#
user-interface con 0
authentication-mode aaa
user-interface vty 0 4
user-interface vty 16 20
#
return
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP