Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Incorrect IP address, gateway; where is it getting this address?

  1. #1
    Join Date
    May 2008
    Location
    Michigan/Germany
    Beans
    123
    Distro
    Ubuntu 20.04 Focal Fossa

    Incorrect IP address, gateway; where is it getting this address?

    Can anyone help me solve a network problem?

    For years and years my media /web server has had the same local ip address and over those years that ip (192.168.1.100) got really entrenched. Now, I've had to change its address because I moved and the only way to get something even approaching usable internet speeds was to use a hybrid cell/DSL router from the telecom. That router wouldn't let me use 192.168.1.xxx; the closest I could set it to was 192.168.2.xxx. So, I changed the 1 to a 2 everywhere i could find it, but still couldn't get on the internet. I tried setting network manager to use automatic dhcp, but still couldn't get online. The correct (new) ip showed up when I queried it and was in the gui info, but still nothing: "no route to host".

    What I stumbled on is that when I pinged there was the old ip:

    htpc@htpc:~$ ping -c5 198.252.206.24
    PING 198.252.206.24 (198.252.206.24) 56(84) bytes of data. From 192.168.1.100 icmp_seq=1 Destination Host Unreachable From 192.168.1.100 icmp_seq=2 Destination Host Unreachable From 192.168.1.100 icmp_seq=3 Destination Host Unreachable From 192.168.1.100 icmp_seq=4 Destination Host Unreachable From 192.168.1.100 icmp_seq=5 Destination Host Unreachable
    --- 198.252.206.24 ping statistics --- 5 packets transmitted, 0 received, +5 errors, 100% packet loss, time 4098ms pipe 4

    [but then if I do this...]
    htpc@htpc:~$ sudo ip route add default via 192.168.2.1
    [presto]
    htpc@htpc:~$ ping -c5 198.252.206.24
    PING 198.252.206.24 (198.252.206.24) 56(84) bytes of data. 64 bytes from 198.252.206.24: icmp_seq=1 ttl=54 time=115 ms 64 bytes from 198.252.206.24: icmp_seq=2 ttl=54 time=116 ms 64 bytes from 198.252.206.24: icmp_seq=3 ttl=54 time=116 ms 64 bytes from 198.252.206.24: icmp_seq=4 ttl=54 time=114 ms 64 bytes from 198.252.206.24: icmp_seq=5 ttl=54 time=116 ms
    --- 198.252.206.24 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 114.835/115.828/116.216/0.663 ms

    I know the output is old, but I have tried clearing the ARP table since then, but this is still ongoing.
    I've now tried to install Bubbleupnp and though i go to the correct address to get the web interface, it's listening on the old, nonexistent address

  2. #2
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,699

    Re: Incorrect IP address, gateway; where is it getting this address?

    Are these command being run on the media server, or on another PC on the local LAN?

    192.168.1.100 is clearly still there on the network. It needs reconfiguring. If configuring by editing a config file then it may need restarting to get it to use the new settings.
    Last edited by The Cog; November 9th, 2019 at 12:30 PM.

  3. #3
    Join Date
    Nov 2019
    Location
    London, UK
    Beans
    17

    Re: Incorrect IP address, gateway; where is it getting this address?

    I'm assuming these are from the media server. Could you run an 'ifconfig' so we can see the config of the interfaces on this machine?
    The fact you can add a default gateway using a 192.168.2.x address suggests the server does have an IP on this range.

  4. #4
    Join Date
    May 2008
    Location
    Michigan/Germany
    Beans
    123
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Incorrect IP address, gateway; where is it getting this address?

    The new router will not assign addresses in the 192.168.1.xxx range. I assume it's because it's a hybrid cellular /DSL and is using that range for something already. In any case, it won't let me set that range, so i had to use 192.168.2.xxx for the new network.

    The below is after manually setting the gateway as in original post.

    Last login: Fri Nov 8 00:22:05 2019 from 192.168.2.201
    htpc@htpc:~$ ifconfig
    enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.255
    inet6 2003:d3:5f0e:ce73:7de0:a7c8:8744:19cb prefixlen 64 scopeid
    0x0<global>
    inet6 fe80::fd3d:365c:693f:35f4 prefixlen 64 scopeid 0x20<link>
    inet6 2003:d3:5f0e:ce73:b1e0:c0c7:42a6:216e prefixlen 64 scopeid
    0x0<global>
    ether 4c:cc:6a:fe:c3:10 txqueuelen 1000 (Ethernet)
    RX packets 344363235 bytes 469995627085 (469.9 GB)
    RX errors 124 dropped 1215 overruns 0 frame 62
    TX packets 139573320 bytes 24143025864 (24.1 GB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 16 memory 0xdf600000-df620000

    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 30778835 bytes 268887676229 (268.8 GB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 30778835 bytes 268887676229 (268.8 GB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

  5. #5
    Join Date
    Nov 2019
    Location
    London, UK
    Beans
    17

    Re: Incorrect IP address, gateway; where is it getting this address?

    So the .100 is the box that you are pinging from? I don't think this IP is still in use if that's the case. As the setup works with the default gateway set can you not do this permanently?

  6. #6
    Join Date
    May 2008
    Location
    Michigan/Germany
    Beans
    123
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Incorrect IP address, gateway; where is it getting this address?

    That's the question. Why can't i permanently get rid of 192.168.1.100. Where is it getting that from and how to get rid of it so i don't have to set the gateway manually

  7. #7
    Join Date
    Mar 2007
    Beans
    Hidden!
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: Incorrect IP address, gateway; where is it getting this address?

    It seems it must be in some system or network cache somewhere... could even be a browser cache...

    Are you familiar with wireshark? If you could packet-sniff the dns request that returns the bad old ip addy, it would answer a lot of questions and probably point to the solution.

  8. #8
    Join Date
    May 2014
    Location
    /home
    Beans
    10,903
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Incorrect IP address, gateway; where is it getting this address?

    See the wireless script link in my signature and post results
    It might find where the issue is

  9. #9
    Join Date
    May 2008
    Location
    Michigan/Germany
    Beans
    123
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Incorrect IP address, gateway; where is it getting this address?

    Replying to both: does it matter that this is wired and not wifi?

  10. #10
    Join Date
    May 2014
    Location
    /home
    Beans
    10,903
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Incorrect IP address, gateway; where is it getting this address?

    It doesn't matter that it is ethernet for what we are looking for

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •