I recently got a new cable modem and when I reset the IP it gave me an IPv6 IP address. This is a problem because it is a hassle to type in this long string of hexadecimal numbers and also PuTTY does not work with IPv6, at least that I have been able to figure out so far. Also, I do programming on the machine and it will be a hassle to support v6 addresses programmatically. By far the simplest thing would be for me to get an IPv4 address, but I cannot seem to do this. I tried:
sudo dhclient -4 -r eth0
But it did not work, I still got an IPv6 address. I am pretty sure that the ISP (Comcast) still supports IPv4. How can I force the DHCP server to give me an IPv4?
Note: this is a "dual stack" modem. When I bring up the modem administration page it does show an IPv4 "WAN IP", but when I try connecting to the ssh server using this IP the attempt to connect times out.
fe80
)? Also even if it's global IPv6 address it is probably configured through SLAAC by the kernel.