rpine200
Contributor
Contributor

Photon Not Keeping IP Address

Have built out the OS and installed the health-diagnostics .iso but unable to get it to ping... When it boots up and you run ip addr it does not show having an IP Address. When you go into the 99-static-en.network it does show the correct ip, subnet mask & gateway. What am I missing to get this corrected? 

0 Kudos
2 Replies
Avatar101
Contributor
Contributor

For ping to happen you will have to run the iptables command for egress and ingress on ICMP ping packets

Here it is

iptables -A INPUT -p ICMP -j ACCEPT
iptables -A OUTPUT -p ICMP -j ACCEPT

and then
iptables-save > /etc/systemd/scripts/ip4save to survive the above after reboots. 

 

 

 

0 Kudos
ksram
VMware Employee
VMware Employee

@rpine looking at the journals can provide some insights into the failure.

Logged is as root user in the console, restart the network service and inspect the journal

systemctl restart systemd-networkd

journalctl -u systemd-networkd

You can scroll to the end of the journal display (Shift + G) and review for any failures.

 

-Thanks

Ram

0 Kudos