0
0
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.
1put a router between your network and the cable companies equipment, or contact the ISP for support. you could try disabling IPv6 and hope it negotiates a v4 address, but that is entirely determined by the ISP's policies applied to the router. – Frank Thomas – 2016-06-02T05:05:18.383
Are you talking about a link-local address (which starts with
fe80
)? Also even if it's global IPv6 address it is probably configured through SLAAC by the kernel. – Tom Yan – 2016-06-02T08:43:22.537