Jak zmienić nazwy interfejsów sieciowych w checkpoincie, bardzo pomocne gdy robimy upgrade np. z UTM1 na nowszy urządzenie w mym przypadku jest to model z serii 2200:
wyświetlamy nazwy interfejsów na starym urządzeniu:
ID=="0000:01:00.0", NAME="Internal" ID=="0000:02:00.0", NAME="External" ID=="0000:03:00.0", NAME="DMZ" ID=="0000:04:00.0", NAME="Lan1" ID=="0000:05:03.0", NAME="Lan2" ID=="0000:05:04.0", NAME="Lan3"
odnajdujemy plik zaczynający się do 00-*.rules w katalogu /etc/udev/rules.d/ na nowym urządzeniu
[Expert@cpmodule]# more /etc/udev/rules.d/00-T-110-00.rules ID=="0000:02:00.0", NAME="eth1" ID=="0000:03:00.0", NAME="eth2" ID=="0000:04:00.0", NAME="eth3" ID=="0000:05:00.0", NAME="eth4" ID=="0000:06:00.0", NAME="eth5" ID=="0000:07:00.0", NAME="Mgmt"
przechodzimy do edycji jego zmieniamy tak jak chcemy aby było:
vi /etc/udev/rules.d/00-T-110-00.rules ID=="0000:02:00.0", NAME="Internal" ID=="0000:03:00.0", NAME="External" ID=="0000:04:00.0", NAME="DMZ" ID=="0000:05:00.0", NAME="Lan1" ID=="0000:06:00.0", NAME="Lan2" ID=="0000:07:00.0", NAME="Lan3"
ipconfig -a przed zmianą:
[Expert@cpmodule]# ifconfig -a Mgmt Link encap:Ethernet HWaddr 00:1C:7F:31:46:F1 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:106 Memory:febe0000-fec00000 eth1 Link encap:Ethernet HWaddr 00:1C:7F:31:46:EC 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:82 Memory:fe6e0000-fe700000 eth2 Link encap:Ethernet HWaddr 00:1C:7F:31:46:ED 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:106 Memory:fe7e0000-fe800000 eth3 Link encap:Ethernet HWaddr 00:1C:7F:31:46:EE 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:90 Memory:fe8e0000-fe900000 eth4 Link encap:Ethernet HWaddr 00:1C:7F:31:46:EF 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:74 Memory:fe9e0000-fea00000 eth5 Link encap:Ethernet HWaddr 00:1C:7F:31:46:F0 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:82 Memory:feae0000-feb00000
Wykonujemy reboot, po uruchomieniu mamy już interfejsy zgodnie ze zmianą.
ipconfig -a po zmianie:
[Expert@cpmodule]# ifconfig -a DMZ Link encap:Ethernet HWaddr 00:1C:7F:31:46:EE 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:90 Memory:fe8e0000-fe900000 External Link encap:Ethernet HWaddr 00:1C:7F:31:46:ED 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:106 Memory:fe7e0000-fe800000 Internal Link encap:Ethernet HWaddr 00:1C:7F:31:46:EC 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:82 Memory:fe6e0000-fe700000 Lan1 Link encap:Ethernet HWaddr 00:1C:7F:31:46:EF 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:74 Memory:fe9e0000-fea00000 Lan2 Link encap:Ethernet HWaddr 00:1C:7F:31:46:F0 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:82 Memory:feae0000-feb00000 Lan3 Link encap:Ethernet HWaddr 00:1C:7F:31:46:F1 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:106 Memory:febe0000-fec00000