192.168.0.0起了DHCP ,掩码是255.255.248实际上他只用了192.168.0.0-192.168.7.254的地址段,要正确的改成这正对不对,
因为不改交换机里写不了192.168.的其它地址
对齐方式
[hexin-sw]dis cur # version 7.1.070, Release 7557P03 # sysname hexin-sw # telnet server enable # forward-path-detection enable # ip unreachables enable ip ttl-expires enable # dhcp enable dhcp server forbidden-ip 192.168.0.1 192.168.0.149 dhcp server forbidden-ip 192.168.0.251 192.168.0.254 dhcp server forbidden-ip 192.168.1.1 dhcp server forbidden-ip 192.168.1.250 192.168.1.254 dhcp server forbidden-ip 192.168.2.1 dhcp server forbidden-ip 192.168.2.250 192.168.2.254 dhcp server forbidden-ip 192.168.3.1 dhcp server forbidden-ip 192.168.3.241 192.168.3.254 dhcp server forbidden-ip 192.168.6.0 192.168.6.255 dhcp server forbidden-ip 192.168.6.2 dhcp server forbidden-ip 192.168.7.0 192.168.7.254 # lldp global enable # system-working-mode standard xbar load-balance password-recovery enable # vlan 1 # vlan 2 description AC # vlan 101 description MGT # vlan 113 description 监控 # vlan 114 description 空闲 # vlan 115 description 无线业务 # vlan 116 description 广播 # vlan 117 description 录像 # vlan 118 description 视频 # stp global enable # ftth # dhcp server ip-pool 192.168.0.0 gateway-list 192.168.0.254 network 192.168.0.0 mask 255.255.248.0 address range 192.168.0.1 192.168.5.254 dns-list 114.114.114.114 # dhcp server ip-pool vlan115 gateway-list 10.226.75.254 network 10.226.75.0 mask 255.255.255.0 dns-list 218.2.135.1 114.114.114.114 # interface NULL0 # interface Vlan-interface1 # interface Vlan-interface2 description AC ip address 192.168.0.254 255.255.255.0 ip address 192.168.1.254 255.255.255.0 sub ip address 192.168.2.254 255.255.255.0 sub ip address 192.168.3.254 255.255.255.0 sub ip address 192.168.4.254 255.255.255.0 sub ip address 192.168.5.254 255.255.255.0 sub ip address 192.168.6.1 255.255.255.0 sub # interface Vlan-interface101 description MGT-Gateway ip address 192.168.101.254 255.255.255.0 # interface Vlan-interface113 ip address 10.226.73.254 255.255.255.0 # interface Vlan-interface114 ip address 10.226.74.254 255.255.255.0 # interface Vlan-interface115 ip address 10.226.75.254 255.255.255.0 # interface Vlan-interface116 ip address 10.226.76.254 255.255.255.0 # interface Vlan-interface117 ip address 10.226.77.254 255.255.255.0 # interface Vlan-interface118 ip address 10.226.78.254 255.255.255.0 # interface GigabitEthernet0/0/1 port link-mode bridge port link-type trunk port trunk permit vlan all port trunk pvid vlan 2 # interface GigabitEthernet0/0/2 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/3 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/4 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/5 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/6 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/7 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/8 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/9 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/10 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/11 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/12 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/13 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/14 port link-mode bridge port link-type trunk port trunk permit vlan all port trunk pvid vlan 2 # interface GigabitEthernet0/0/15 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/16 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/17 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/18 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/19 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/20 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/21 port link-mode bridge port access vlan 2 # interface GigabitEthernet0/0/22 port link-mode bridge port link-type trunk port trunk permit vlan all port trunk pvid vlan 2 # interface GigabitEthernet0/0/23 port link-mode bridge port link-type trunk port trunk permit vlan all port trunk pvid vlan 2 # interface GigabitEthernet0/0/24 port link-mode bridge description Link-FW port access vlan 101 stp edged-port # interface M-GigabitEthernet0/0/0 # interface Ten-GigabitEthernet0/0/25 port link-mode bridge # interface Ten-GigabitEthernet0/0/26 port link-mode bridge # interface Ten-GigabitEthernet0/0/27 port link-mode bridge # interface Ten-GigabitEthernet0/0/28 port link-mode bridge # scheduler logfile size 16 # line class aux user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 4 authentication-mode scheme user-role network-operator protocol inbound telnet # line vty 5 63 user-role network-operator # ip route-static 0.0.0.0 0 192.168.101.1 # domain system # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$QCEPn1nCjTZiSPho$K0kcMwLacfECguX28W12fJY+kb17rfXIy+TfmRlAb0puZ+d8eBB7AbYafQSdIDSMWvnVcSw5v8XX7yC0BlHC5A== service-type telnet authorization-attribute user-role level-15 authorization-attribute user-role network-operator # return
(0)
最佳答案
248是0-7网段,要是配置了add range就只是下发配置的那点地址,现在是想要实现什么呀,如果要删除就在add range前面加undo
(0)
现在的问题是我写其它地址段,提示地址和掩码错误码
把之前的add range删掉再去试试
附件里有具体的配置,还能看一下,是哪里有问题,我新建vlan,在新的vlan里写其它192.168.129.0 255.255.255.0 提示IP或掩码错误
在新的vlan里写其它192.168.129.0 255.255.255.0 提示IP或掩码错误,这个是给vlan虚接口配置的时候写的.0还是怎么样,要是给VLAN虚接口配置地址192.167.129.0肯定会报错,主机地址没有以0结尾
上面那个192.168.0.0 是地址池名字 不是实际地址,你VLANIF地址那不能是192.168.128.0
255.255.248.0的掩码本身就是
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
上面那个192.168.0.0 是地址池名字 不是实际地址,你VLANIF地址那不能是192.168.128.0