Link to home
Start Free TrialLog in
Avatar of ittechlab
ittechlabFlag for Canada

asked on

linux network issue

[root@lnx01 network-scripts]# ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.91  netmask 255.255.255.0  broadcast 192.168.2.255
        ether 00:19:b9:d8:d7:ce  txqueuelen 1000  (Ethernet)
        RX packets 68  bytes 8620 (8.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 28  bytes 4747 (4.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp9s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.89  netmask 255.255.255.0  broadcast 192.168.2.255
        ether 00:19:b9:d8:d7:d0  txqueuelen 1000  (Ethernet)
        RX packets 198  bytes 22702 (22.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 154  bytes 27001 (26.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


[root@lnx01 network-scripts]# cat ifcfg-enp5s0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.2.89
NETMASK=255.255.255.0
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
NAME=enp5s0
ONBOOT=yes
GATEWAY=192.168.2.1

[root@lnx01 network-scripts]# cat ifcfg-enp9s0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.2.91
NETMASK=255.255.255.0
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
NAME=enp9s0
ONBOOT=yes
GATEWAY=192.168.2.1

what the IP is switched?
Avatar of Natty Greg
Natty Greg
Flag of Canada image

What is the question?
Avatar of Dr. Klahn
Dr. Klahn

OK ... here is a system with two adapters and two IP addresses, the IP addresses being on the same LAN and using the same gateway.  Somewhat unusual, but a legitimate configuration.  The adapters have "predictable network interface" names rather than the traditional eth0, eth1, etc.  

As Natty Greg says, what's the issue?  There's no errors evident in the information provided above.
Avatar of ittechlab

ASKER

according to the config enp5s0 suppose to get 192.168.2.89. I don't see its working.
Looks like it's up from the ifconfig info ... RX packets 68  bytes 8620 (8.4 KiB), TX packets 28  bytes 4747 (4.6 KiB).
You can see transfer and receive packets and bytes on both interfaces in your output, so they have both been active

Also, when two interfaces are connected with default route to Internet, it will probably, for the most time, only use one of the interfaces
Probably you should look into network bonding instead...
>>what the IP is switched?
That's a nice euphemism for swearing. Need to remember that :)

If you get 2 IPs on 2 interfaces on the same network, unless you have some routing that send some traffic on one interface and the rest on another interface, all traffic will go out on a single interface (the first, usually).

If you can tell us the purpose, we probably can give you a working solution.

HTH,
Dan
ASKER CERTIFIED SOLUTION
Avatar of ittechlab
ittechlab
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found the fixed. issue was related to the configuration parameter and i was able to google and find the answer.  None of the answers are even close to it.