Internet inteface switch
Thomas
yellowdog-general@lists.terrasoftsolutions.com
Sun Jun 1 11:16:01 2003
Hi all
i have to ask you again.
This is my interface configuration and pinging over both interfaces work
fine.
How to tell the system to use ppp0 to connect to the internet? Do I have
to setup a router? Do I have to setup IP Masquerading?
Any help is appreciated.
Here is the config:
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:C5:59:3D:D2
inet addr:192.168.0.201 Bcast:192.168.0.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:4 dropped:0 overruns:0 carrier:6
collisions:0
RX bytes:540 (540.0 b) TX bytes:5668 (5.5 Kb)
eth1 Link encap:Ethernet HWaddr 00:05:9A:80:EF:64
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:133 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:7504 (7.3 Kb) TX bytes:1873 (1.8 Kb)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:132 errors:0 dropped:0 overruns:0 frame:0
TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:8576 (8.3 Kb) TX bytes:8576 (8.3 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:212.202.186.49 P-t-P:212.202.223.252
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:4214 (4.1 Kb) TX bytes:54 (54.0 b)
[root@localhost root]#
and this is the result of pinging:
[root@localhost thk]# ping -I ppp0 213.148.130.10
PING 213.148.130.10 (213.148.130.10) from 212.202.223.73 ppp0: 56(84)
bytes of data.
64 bytes from 213.148.130.10: icmp_seq=1 ttl=252 time=26.8 ms
64 bytes from 213.148.130.10: icmp_seq=2 ttl=252 time=25.9 ms
64 bytes from 213.148.130.10: icmp_seq=3 ttl=252 time=25.2 ms
--- 213.148.130.10 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 2015ms
rtt min/avg/max/mdev = 25.299/26.032/26.863/0.668 ms
[root@localhost thk]# ping -I eth0 192.168.0.100
PING 192.168.0.100 (192.168.0.100) from 192.168.0.201 eth0: 56(84) bytes
of data.
64 bytes from 192.168.0.100: icmp_seq=1 ttl=64 time=0.647 ms
64 bytes from 192.168.0.100: icmp_seq=2 ttl=64 time=0.687 ms
64 bytes from 192.168.0.100: icmp_seq=3 ttl=64 time=0.607 ms
--- 192.168.0.100 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 2021ms
rtt min/avg/max/mdev = 0.607/0.647/0.687/0.032 ms
[root@localhost thk]#
Kind regards,
Thomas
--
Thomas Kuehner
http://macgix-services.com