When I define an interface that has a static address, I define the interface with the name of the device (eth1 in this case) and select "Static IP Address". I then right click and select "Add new address". In the address dialog, I give it a descriptive name, an address (lets say 220.127.116.11) and a netmask (255.255.255.252). The following looks to be what is generated for it in the fw file
update_addresses_of_interface "eth1 18.104.22.168/30 22.214.171.124/30" ""
an "ip addr show dev eth1" produces the following
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:00:24:ce:f3:9d brd ff:ff:ff:ff:ff:ff
inet 126.96.36.199/30 brd 188.8.131.52 scope global eth1
inet 184.108.40.206/30 brd 220.127.116.11 scope global secondary eth1
Is it meant to assign 2 IP's to the interface even though I only assigned one ?
I've hunted through my definitions to see if I have somehow managed to add an extra one but I cant find it. For larger subnets (eg /24) it only gets assigned a single IP.
Any suggestions ?
I eventually found the culprit. I had a NAT rule that used the other IP so the interface obviously needed to have both IPs. One for my explicit definition, and one to handle the NAT rule.
Log in to post a comment.