CDC/RNDIS and 3g/4g modem configuration

network
v7

(Yaroslav Nakonechnikov) #1

NethServer Version: 7.5.1804 (final)
Module: network

Hello,

i’ve inserted modem in NethServer, and on network tab i see this:

how i can configure these grayed enterfaces?
is there any “best-practicies”?

what i want - is to setup failover. Modem will have higher priority than wired.


(Yaroslav Nakonechnikov) #2

also:

[root@nethvo network-scripts]# ifconfig enp0s29f2u1
enp0s29f2u1: error fetching interface information: Device not found
[root@nethvo network-scripts]# ifconfig eth0
eth0: error fetching interface information: Device not found

i created /etc/sysconfig/network-scripts/ifcfg-enp0s29f2u1
with:

DEVICE=enp0s29f2u1
BOOTPROTO=DHCP

and it doesn’t help.

on windows system it creates network interface with dhcp client and gets ip 10.0.0.10


(Yaroslav Nakonechnikov) #3

ok. i have some progress.

after removing cdrom: eject -t cdrom
i get new network interface enp0s29f2u2, and i can configure it.

but i still cant use it.

[root@nethvo ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         84.204.31.121   0.0.0.0         UG    0      0        0 enp2s0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 enp0s29f2u2
10.0.0.1        0.0.0.0         255.255.255.255 UH    0      0        0 enp0s29f2u2
84.204.31.120   0.0.0.0         255.255.255.248 U     0      0        0 enp2s0
84.204.31.121   0.0.0.0         255.255.255.255 UH    0      0        0 enp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 enp1s9
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 enp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1005   0        0 wlp1s10
169.254.0.0     0.0.0.0         255.255.0.0     U     1010   0        0 enp0s29f2u2
192.168.46.0    0.0.0.0         255.255.255.0   U     0      0        0 enp1s9
192.168.47.0    0.0.0.0         255.255.255.0   U     0      0        0 wlp1s10
192.168.140.0   0.0.0.0         255.255.255.0   U     0      0        0 enp2s0
[root@nethvo ~]# ping -c 3 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.0.2 icmp_seq=1 Destination Host Unreachable
From 10.0.0.2 icmp_seq=2 Destination Host Unreachable
From 10.0.0.2 icmp_seq=3 Destination Host Unreachable

--- 10.0.0.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
pipe 3

Why? what is blocking?


(Filippo Carletti) #4

Who is 10.0.0.2? It’s blocking you.


(Yaroslav Nakonechnikov) #5

10.0.0.2 it is nethserver


(Yaroslav Nakonechnikov) #6

oh… sorry… made mistake on last copy&paste…

[root@nethvo ~]# ifconfig enp0s29f2u2
enp0s29f2u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.10  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::ae50:43ff:fe6f:d8eb  prefixlen 64  scopeid 0x20<link>
        ether ac:50:43:6f:d8:eb  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 4158013  dropped 0  overruns 0  frame 4158013
        TX packets 2475  bytes 244800 (239.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
[root@nethvo ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         84.204.31.121   0.0.0.0         UG    0      0        0 enp2s0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 enp0s29f2u2
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 enp0s29f2u2
84.204.31.120   0.0.0.0         255.255.255.248 U     0      0        0 enp2s0
84.204.31.121   0.0.0.0         255.255.255.255 UH    0      0        0 enp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 enp1s9
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 enp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1005   0        0 wlp1s10
169.254.0.0     0.0.0.0         255.255.0.0     U     1010   0        0 enp0s29f2u2
192.168.46.0    0.0.0.0         255.255.255.0   U     0      0        0 enp1s9
192.168.47.0    0.0.0.0         255.255.255.0   U     0      0        0 wlp1s10
192.168.140.0   0.0.0.0         255.255.255.0   U     0      0        0 enp2s0
[root@nethvo ~]# ping -c 2 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.0.10 icmp_seq=1 Destination Host Unreachable
From 10.0.0.10 icmp_seq=2 Destination Host Unreachable

--- 10.0.0.1 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1000ms
pipe 2

(Yaroslav Nakonechnikov) #7

i’ve tryied install new kernel 4.xx and no luck.

then, i’ve tryied it on nethserver 6. and it works… so, something with centos 7.