1. view the current Gateway arp-aSSH and execute the preceding commands. you can view the Gateway host name, gateway IP address, Gateway MAC address, and corresponding Nic, for example, bind gateway MAC1) bind echo & quot; 198.52.103.19300: D0: 2B: D1: 58: 80 & quot; & gt;/etc/safe #1. view the current Gateway
arp -a
Run the preceding commands in SSH to check the Gateway host name, gateway IP address, Gateway MAC address, and corresponding Nic, as shown in figure
2. bind a Gateway MAC
1) bind
Echo "198.52.103.193 00: D0: 2B: D1: 58: 80">/etc/safe # Modify the yellow part based on the actual situation. Format: Gateway IP address (space) MAC address 2) activation to make it take effect
arp -f /etc/safe
Use SSH to execute the preceding command to make it take effect.
III. check for effectiveness
Execute the preceding command again. for example, if one more sentence ends: [PERM], the manual binding takes effect.