I have a CentOS 7 system (no GUI) and logging in with ssh (Putty) from a Windows system. When I log in two IPs are listed, i.e.
IP Address: 10.13.226.120/22
IP Address: 192.168.10.8/24
The connection I established is through the 10.13.226.120 address which I set to DHCP. There is a second network adapter in the system which seems to be that 192.168.10.8 address. I did a "sudo yum install apt" but that produced the error:
http://192.168.10.4:8765/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 192.168.10.4:8765; No route to host" Trying other mirror.
For some reason it tried to use that 192.168.10.4 address. That's despite the fact that when I do a nmcli d that other network interface is listed as unavailable. I even did a sudo ifdown enp0x31f7. So how can I make CentOS to use the 10.13.226.120 address? And is that 8765 port causing some additional issues?
Note that I am a complete Linux beginner.
IP Address: 10.13.226.120/22
IP Address: 192.168.10.8/24
The connection I established is through the 10.13.226.120 address which I set to DHCP. There is a second network adapter in the system which seems to be that 192.168.10.8 address. I did a "sudo yum install apt" but that produced the error:
http://192.168.10.4:8765/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 192.168.10.4:8765; No route to host" Trying other mirror.
For some reason it tried to use that 192.168.10.4 address. That's despite the fact that when I do a nmcli d that other network interface is listed as unavailable. I even did a sudo ifdown enp0x31f7. So how can I make CentOS to use the 10.13.226.120 address? And is that 8765 port causing some additional issues?
Note that I am a complete Linux beginner.