Avatar of ittechlab
ittechlab
Flag 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?
Linux* ipLinux Networking

Avatar of undefined
Last Comment
ittechlab

8/22/2022 - Mon
Natty Greg

What is the question?
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.
ittechlab

ASKER
according to the config enp5s0 suppose to get 192.168.2.89. I don't see its working.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Dr. Klahn

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).
Gammelgaard

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
gheist

Probably you should look into network bonding instead...
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Dan Craciun

>>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
ittechlab

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ittechlab

ASKER
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.