各位前辈好
小弟我最近有个需求是想把一台电脑当proxy
申请了中华的pppoe加上 中嘉宽带的固定ip
主机版的网卡接中华pppoe的线
PCIE的网卡接中嘉的线
eno1是主机版的网卡
enp4s0是pcie的tplink网卡
我在网络上查了一些文章自己试了很久还是搞不太懂
为什么其中一个对外可以通另一个就会不能通?
想请教各位前辈有没有什么解决方法?
提供资讯如下
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eno1
168.95.98.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eno1
192.168.1.1 0.0.0.0 255.255.255.255 UH 100 0 0 eno1
204.205.229.0 0.0.0.0 255.255.255.0 U 0 0 0 enp4s0
204.205.229.101 0.0.0.0 255.255.255.255 UH 0 0 0 enp4s0
ifconfig
eno1: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 192.168.1.104 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2001:b011:3800:1c1e:b62e:99ff:fe92:55 prefixlen 64 scopeid
0x0<global>
inet6 fe80::b62e:99ff:fe92:55 prefixlen 64 scopeid 0x20<link>
ether b4:2e:99:92:00:55 txqueuelen 1000 (Ethernet)
RX packets 115409 bytes 10948484 (10.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 71254 bytes 9361504 (9.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 204.205.229.101 netmask 255.255.255.0 broadcast 204.205.229.255
inet6 fe80::b6b0:24ff:fed2:5d3 prefixlen 64 scopeid 0x20<link>
ether b4:b0:24:d2:05:d3 txqueuelen 1000 (Ethernet)
RX packets 51126 bytes 9584453 (9.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 134724 bytes 17830947 (17.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
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 1000 (Local Loopback)
RX packets 2584173 bytes 3568710276 (3.5 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2584173 bytes 3568710276 (3.5 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1492
inet 114.232.129.195 netmask 255.255.255.255 destination
168.95.98.254
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 31044 bytes 1719871 (1.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 55952 bytes 6333108 (6.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0