با سلام و احترام خدمتت دوستان عزیز
شبکه من به صورت این هست
کد HTML:
ppp0 Link encap:Point-to-Point Protocol inet addr:22.140.38.42 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:62 TX bytes:101
wlan0 Link encap:Ethernet HWaddr 6c:21:a2:2b:6a:73 Driver bcmsdh_sdmmc UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 TX bytes:188
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:1487 errors:0 dropped:0 overruns:0 frame:0 TX packets:1487 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:142763 TX bytes:142763
eth0 Link encap:Ethernet HWaddr 00:e0:99:2c:3a:33 Driver sr9900 inet addr:192.168.1.55 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:99ff:fe2c:3a33/64 Scope: Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8204 errors:0 dropped:0 overruns:0 frame:0 TX packets:3768 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:624583 TX bytes:375966
من نیاز دارم که وقتی کابل شبکه به eth0 وصل میشه ارتباط اینترنتم از ppp0 قطه نشه و همیشه اینترنت مسیرش از ppp0 بگذره
نکته : دستگاه من یک بورد اندروید هست که ppp0 سیم کارت هست و eth0 کابل شبکه
- - - Updated - - -
اطلاعات شبکه
ppp0 Link encap:Point-to-Point Protocol
inet addr:22.140.38.42 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:62 TX bytes:101
wlan0 Link encap:Ethernet HWaddr 6c:21:a2:2b:6a:73 Driver bcmsdh_sdmmc
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:188
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:1487 errors:0 dropped:0 overruns:0 frame:0
TX packets:1487 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:142763 TX bytes:142763
eth0 Link encap:Ethernet HWaddr 00:e0:99:2c:3a:33 Driver sr9900
inet addr:192.168.1.55 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:99ff:fe2c:3a33/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8204 errors:0 dropped:0 overruns:0 frame:0
TX packets:3768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:624583 TX bytes:375966