大家好我是vik,最近遇到一个case要求修改XD 管理网的网关,原网关为x.x.21.254,需要修改为x.x.21.1,也是挺无语的,接下来让我们看看如何快速修改吧,修改前还需和用户商量好,应急和备份机制是否完善(虽然可能用不上)。
1、修改全部服务器的ilmon DB 以及CELL
-> set pendingipgateway=x.x.21.1
Set 'pendingipgateway' to 'x.x.21.1'
-> set commitpending=true
Set 'commitpending' to 'true'
2、修改PDU 的网关 通过地址使用web 登陆https://x.x.21.76/
admin/xx密码
3、修改管理交换机的网关
登陆DB1 admin/密码
ssh admin@x.x.21.73
show run>sw1.runningssh admin@x.x.21.74
show run > sw2.running
ssh admin@x.x.21.75show run > sw3.running
调整管理交换机
Show run
Configure
ip route 0.0.0.0/0 x.x.21.1
no ip route 0.0.0.0/0 x.x.21.254
copy running-config startup-config
调整Rocea
sw-rocea0# show running-config
...
vrf context management
ip route 0.0.0.0/0 x.x.21.254sw-rocea0# configure
sw-rocea0(config)# vrf context management
sw-rocea0(config-vrf)# ip route 0.0.0.0/0 x.x.21.1
sw-rocea0(config-vrf)# no ip route 0.0.0.0/0 x.x.21.254
sw-rocea0(config-vrf)# copy running-config startup-config
[########################################] 100%
Copy complete, now saving to disk (please wait)...
Copy complete.
调整Roceb
[root@dbadm01 ~]# ssh admin@x.x.21.75
sw-roceb0# show running-config...
vrf context management
ip route 0.0.0.0/0 x.x.21.254
sw-roceb0# configure
sw-roceb0(config)# vrf context management
sw-roceb0(config-vrf)# ip route 0.0.0.0/0 x.x.21.1
sw-roceb0(config-vrf)# no ip route 0.0.0.0/0 x.x.21.254
sw-roceb0(config-vrf)# co
congestion-control control-plane copp
sw-roceb0(config-vrf)# copy running-config s
scp: sftp: startup-config
sw-roceb0(config-vrf)# copy running-config startup-config
[########################################] 100%
Copy complete, now saving to disk (please wait)...
Copy complete.
最后在最次show run > sw3.running
3、调整服务器上的NET0
需要登陆ilom调整
修改eth0的网关 以及route-eth0
ifdown eth0
ifup eth0
到此调整完毕。