Использование 2 сетевых интерфейсов для разных программ
Форум — General
Доброго времени суток всем!!!! Есть такая проблемма нужно настроить 2 сетевых интерфейсов для одновременной работы с разделением потоков передоваемых от разных программ.
Система
[pp@cyb-a-tech ppp]$ uname -a
Linux cyb-a-tech 4.3.3-slx-20151216-1 #1 SMP Wed Dec 16 23:06:01 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
[pp@cyb-a-tech ppp]$ cat /etc/redhat-release
Fedora release 21 (Twenty One)
Интерфейсы
[pp@cyb-a-tech ppp]$ ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:0b:ab:a5:03:40 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7c00000-f7c20000
enp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:0b:ab:a5:03:41 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xf7900000-f79fffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 800 bytes 44004 (42.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 800 bytes 44004 (42.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.105.192.245 netmask 255.255.255.255 destination 10.64.64.64
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 14 bytes 4084 (3.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 85 bytes 7217 (7.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 46:85:05:43:7d:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.88.29 netmask 255.255.255.0 broadcast 192.168.88.255
inet6 fe80::4a51:b7ff:fe41:d3ae prefixlen 64 scopeid 0x20<link>
ether 48:51:b7:41:d3:ae txqueuelen 1000 (Ethernet)
RX packets 93246 bytes 93232653 (88.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 44090 bytes 5468285 (5.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Нужно что бы работали одновременно ppp0 (соединение идёт через 3g модем PCI-Ex) и wlp4s0 (Wi-Fi)
По отдельности всё работает при включение 3g (ifup ppp0)
соединение во внешку идёт через 3g
[pp@cyb-a-tech ppp]$ ping -I wlp4s0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.88.29 wlp4s0: 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 5999ms
После отключения ifdown ppp0 Wi-Fi нормально подымаеться.
Как я понимаю проблемма в dns где и как прописпть правила ????