一、查询旧配置IP(零段即0.0.0.0/0通常是默认路由,这里指查找历史IP)
1. 查看启动配置(旧系统保存的配置):
display saved-configuration
或查看具体的 .cfg 配置文件:
dir flash:
more flash:/startup.cfg
2. 在输出中搜索 interface(接口IP)或 ip route-static(静态路由):
interface Vlan-interface10
ip address 192.168.1.1 255.255.255.0
二、配置新的跨网段IP(SVI及路由)
1. 配置VLAN接口IP(作为网关):
system-view
[H3C] vlan 10
[H3C-vlan10] port GigabitEthernet1/0/1
[H3C-vlan10] quit
[H3C] interface Vlan-interface 10
[H3C-Vlan-interface10] ip address 192.168.10.1 255.255.255.0
[H3C-Vlan-interface10] quit
2. 配置静态路由(跨网段可达):
[H3C] ip route-static 192.168.20.0 255.255.255.0 192.168.10.254
暂无评论