PDA

View Full Version : Change Interface Names on 4200 appliance



slowfood27
2016-01-21, 04:01
I want to prepare a 4200 appliance as a cold standby for an IP390 appliance. In order to get a quick failover in case the IP390 dies, I want to rename the interfaces on my 4200 to the same names as seen on the IP390, so I don't need to do any changes on the Topology of Check Point Database objects.
Similar to sk69621 (yes, I noticed that's not supported on Check Point Appliances, but digging the unsupported makes life intersting) I found the file /etc/udev/rules.d/00-T-120-00.rules which defines the interface mapping.

After editing that file and rebooting, the output in the bash shell looks perfect:

[Expert@test:0]# ifconfig -a
eth1c0 Link encap:Ethernet HWaddr 00:1C:7F:32:7F:FE
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:193 Memory:fe9e0000-fea00000

eth2c0 Link encap:Ethernet HWaddr 00:1C:7F:32:7F:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:201 Memory:fe8e0000-fe900000

eth3c0 Link encap:Ethernet HWaddr 00:1C:7F:32:80:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:185 Memory:feae0000-feb00000

eth4c0 Link encap:Ethernet HWaddr 00:1C:7F:32:80:01
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:193 Memory:febe0000-fec00000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:828 errors:0 dropped:0 overruns:0 frame:0
TX packets:828 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:110233 (107.6 KiB) TX bytes:110233 (107.6 KiB)

[Expert@test:0]#


However, if I check with clish, then I get still an eth3 interface besides the "renamed" ones, but without any real HW (MAC address) significance. There seems to some crap in the clish db still. How can I get rid of that eth3?

test> show interfaces
eth1c0
eth2c0
eth3
eth3c0
eth4c0
lo
test> show interface eth3
state off
mac-addr Not configured
type ethernet
link-state Not configured
mtu Not configured
auto-negotiation Not configured
speed 10M
ipv6-autoconfig Not configured
duplex half
monitor-mode Not configured
link-speed Not configured
comments
ipv4-address Not Configured
ipv6-address Not Configured
ipv6-local-link-address Not Configured

Statistics:
TX
RX
test>

slowfood27
2016-01-21, 06:03
Got it

"dbset interface:eth3" did the trick