wireless interface preferred?

hello:

i ahave been using opensuse 13.2 on an old t60 for over a year. it has both wired and wireless interfaces. for quite a long time i was using wired only until a month ago i activated wireless. it works fine in the environment with no wired connections. to my surprise, now it would not work for wired connection any more, it is always on wireless.

i thought it should behave like wintel machine: as long as wired connection is active, it will prefer wired connection until wired interface down. are there any ways to fix this?

thanks.

_dave

hello:

i have been using opensuse 13.2 on an old t60 for over a year. it has both wired and wireless interfaces. for quite a long time i was using wired only until a month ago i activated wireless. it works fine in the environment with no wired connections. to my surprise, now the traffic would not use wired connection any more, it is always on wireless. even wired connection is there.

i had tried to shut the wls3 down by “sudo ifconfig wls3 down”, but traffic went nowhere; wired interface just didn’t pick up the traffic at all.

i thought it should behave like wintel machine: as long as wired connection is active, it will prefer wired connection until wired interface down. are there any ways to fix this?

thanks.

_dave

user@node:~> sudo ifconfig -a
root’s password:
ens2 Link encap:Ethernet HWaddr 00:15:58:7C:B9:EF
inet addr:192.168.1.111 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd00::215:58ff:fe7c:b9ef/64 Scope:Global
inet6 addr: fe80::215:58ff:fe7c:b9ef/64 Scope:Link
inet6 addr: fd00::a49e:ef03:7d0d:419b/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3308 errors:0 dropped:1 overruns:0 frame:0
TX packets:1594 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:689558 (673.3 Kb) TX bytes:1110471 (1.0 Mb)
Interrupt:16 Memory:ee000000-ee020000

irda0 Link encap:IrLAP HWaddr 00:00:00:00
NOARP MTU:2048 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wls3 Link encap:Ethernet HWaddr 00:21:63:A4:54:C6
inet addr:192.168.1.211 Bcast:192.168.1.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:789 errors:0 dropped:0 overruns:0 frame:0
TX packets:368 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:132437 (129.3 Kb) TX bytes:44873 (43.8 Kb)

why the routing table doesn’t have default gateway?

user@node:~> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ens2

never mind. somehow the activation of the wireless interface removed the default route file /etc/sysconfig/network/routes

strange

That is the case when using Network Manager - wired preferred over wireless. For wicked I’m not so sure, but you can check the routing table to get more info about what is going on

ip route

For example, when I am using wireless only, I have

default via 192.168.1.1 dev wlp2s0  proto static  metric 1024 
192.168.1.0/24 dev wlp2s0  proto kernel  scope link  src 192.168.1.9 

When wired and wireless are both active, I have

default via 192.168.1.1 dev enp3s0  proto static  metric 1024 
192.168.1.0/24 dev wlp2s0  proto kernel  scope link  src 192.168.1.9 
192.168.1.0/24 dev enp3s0  proto kernel  scope link  src 192.168.1.6 

# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    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
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 20:68:9d:8b:3c:2e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.9/24 brd 192.168.1.255 scope global dynamic wlp2s0
       valid_lft 55510sec preferred_lft 55510sec
    inet6 fe80::2268:9dff:fe8b:3c2e/64 scope link 
       valid_lft forever preferred_lft forever
16: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 4c:72:b9:d7:29:49 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.6/24 brd 192.168.1.255 scope global dynamic enp3s0
       valid_lft 86344sec preferred_lft 86344sec
    inet6 fe80::4e72:b9ff:fed7:2949/64 scope link 
       valid_lft forever preferred_lft forever

Okay, so assuming all good now?

BTW, I merged your two threads on this topic (the other was in the wireless forum), as we prefer not to have duplicate posting.