Second IP not removed.

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Second IP not removed.

Post by hack3rcon » 2018/11/28 12:16:35

Hello.
I'm using CentOS 7 x86_64 and I used "nmtui" for adding two IP addresses manually. I add "192.168.1.2" for the first IP and "X" for the second IP. I removed the second IP and used "systemctl restart network" but I can ping "X" IP!!! I restarted my system too but the problem exist.

Code: Select all

$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.2  netmask 255.255.255.255  broadcast 192.168.1.1
        inet6 fe80::1602:ecff:fe04:56ac  prefixlen 64  scopeid 0x20<link>
        ether 14:02:ec:04:56:ac  txqueuelen 1000  (Ethernet)
        RX packets 32740  bytes 2720191 (2.5 MiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 1753  bytes 425043 (415.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  

How can I solve it?

Thank you.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Second IP not removed.

Post by avij » 2018/11/28 14:16:09

Maybe that X is used elsewhere in your network, and you are actually pinging some other host?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Second IP not removed.

Post by TrevorH » 2018/11/28 15:58:12

Also ifconfig is deprecated, in part because it doesn't show all ip addresses assigned to an interface. Use ip a sh instead.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Second IP not removed.

Post by hack3rcon » 2018/11/29 09:01:26

avij wrote:
2018/11/28 14:16:09
Maybe that X is used elsewhere in your network, and you are actually pinging some other host?
No, when I disable the NIC then I can't ping the second IP.
Linux has any cache like Windows OS?

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Second IP not removed.

Post by hack3rcon » 2018/11/29 09:02:20

TrevorH wrote:
2018/11/28 15:58:12
Also ifconfig is deprecated, in part because it doesn't show all ip addresses assigned to an interface. Use ip a sh instead.
I will post the output.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Second IP not removed.

Post by jlehtone » 2018/11/29 09:40:08

Other commands:

Code: Select all

nmcli
nmcli con sh

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Second IP not removed.

Post by hack3rcon » 2018/12/01 05:35:39

TrevorH wrote:
2018/11/28 15:58:12
Also ifconfig is deprecated, in part because it doesn't show all ip addresses assigned to an interface. Use ip a sh instead.
The output is:

Code: Select all

$ ip a sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 14:02:ec:04:56:ac brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.2/32 brd 192.168.1.2 scope global noprefixroute eno1
       valid_lft forever preferred_lft forever
    inet 255.255.0.0/32 brd 255.255.0.0 scope global noprefixroute eno1
       valid_lft forever preferred_lft forever
    inet6 fe80::1602:ecff:fe04:56ac/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 14:02:ec:04:56:ad brd ff:ff:ff:ff:ff:ff
4: eno3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 14:02:ec:04:56:ae brd ff:ff:ff:ff:ff:ff
5: eno4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 14:02:ec:04:56:af brd ff:ff:ff:ff:ff:ff
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:20:45:af brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:20:45:af brd ff:ff:ff:ff:ff:ff

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Second IP not removed.

Post by hack3rcon » 2018/12/01 05:39:26

jlehtone wrote:
2018/11/29 09:40:08
Other commands:

Code: Select all

nmcli
nmcli con sh
The output is:

Code: Select all

$ nmcli con sh
NAME    UUID                                  TYPE      DEVICE 
eno1    d7c500b0-859d-491d-bc0c-76092bacbd86  ethernet  eno1   
virbr0  7704e08e-5615-4808-9093-6533dcece0f8  bridge    virbr0 
eno2    0d63a231-266c-43e3-a2b7-dd65eca3be01  ethernet  --     
eno3    d53b682c-5567-4937-b04c-2a417d9e7728  ethernet  --     
eno4    ec143a63-8765-4b38-a873-aefae2d10c95  ethernet  --  

$ nmcli
eno1: connected to eno1
        "Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (Ethernet 1Gb 4-port 331i Adapter)"
        ethernet (tg3), 14:02:EC:04:56:AC, hw, mtu 1500
        ip4 default
        inet4 192.168.1.2/32
        inet4 255.255.0.0/32
        route4 192.168.1.2/32
        route4 255.255.0.0/32
        route4 192.168.1.1/32
        route4 0.0.0.0/0
        inet6 fe80::1602:ecff:fe04:56ac/64
        route6 ff00::/8
        route6 fe80::/64
        route6 fe80::/64

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Second IP not removed.

Post by hack3rcon » 2018/12/01 06:33:14

I did the commands in https://www.orionscache.com/2014/01/cle ... -in-linux/ but problem exist.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Second IP not removed.

Post by TrevorH » 2018/12/01 15:24:36

An ip address of 255.255.0.0? Really? Are you sure that's not a typo and is meant to be a netmask?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply