Ydef wrote:How are you able to ping the outside world without being connected to your dsl modem?
This doesn't make any sense.
Sure it does ! In my crazy mixed up world ! You're right, it doesn't make sense without the rest of the explanation and context.
There are TWO modes I am using for testing and both are connected one at a time, to the same dsl modem. In one case, the WGT634U connects through a LAN HUB to a Linux box that is acting as the router and the main Linux box is connected directly to the dsl modem. In the second case, the WGT634U is connected directly to the dsl modem itself and is acting as the LAN router. So, to change modes from one to the other, its just a matter of plugging the ethernet cable directly into the WGT634U or in the other mode plugging the dsl modem via an ethernet cable directly into the main Linux.
When the WGT634U is only connected to the LAN HUB and not directly to the dsl modem, I uses the /etc/resolv.conf search and nameserver settings and is able to search outside of the LAN and resolve names outside of the LAN. When the WGT634U is directly connected to the dsl modem, it can only ping internal LAN addresses (192.168.1.x) and it can ping its own WAN address but is unable to ping the WAN gateway or the nameservers nor can it resolve names.
Ydef wrote:Have you even checked if your ppp interfaces even exist? What does:
ifconfig -a
show you? If you see your ppp interfaces, have you tried to bring them up with ifconfig?
Obviously it would help if you were a lot more specific with how you've attempted to troubleshoot the problem.
You mean you're not all mindreaders ?!?
NOTE: I HAVE A STATIC IP. My ISP does NOT set my IP via dhcp, I set it. It has been that way for about three years.
I'll post several results and will modify only information such as userid's, passwords and IP settings (ie the second and third groupings to 111.111) that are specific to my network.
root@OpenWrt:~# ifconfig -a
ath0 Link encap:Ethernet HWaddr 00:09:5B:F7:95:E1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
br0 Link encap:Ethernet HWaddr 00:00:BA:DC:0D:ED
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4395 (4.2 KiB) TX bytes:6181 (6.0 KiB)
eth0 Link encap:Ethernet HWaddr 00:09:5B:F7:A2:7C
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4995 (4.8 KiB) TX bytes:6207 (6.0 KiB)
Interrupt:4
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vlan0 Link encap:Ethernet HWaddr 00:00:BA:DC:0D:ED
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4583 (4.4 KiB) TX bytes:6337 (6.1 KiB)
vlan1 Link encap:Ethernet HWaddr 00:09:5B:F7:A2:7C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wifi0 Link encap:Ethernet HWaddr 00:09:5B:F7:95:E1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:2 Memory:c0080000-c0090000
root@OpenWrt:~#
# No ppp0 ? and yet /dev/ppp exists
root@OpenWrt:~# lsmod
Module Size Used by Tainted: P
ehci_hcd 25744 0 - Live 0xc0153000
uhci_hcd 27792 0 - Live 0xc014b000
usb_storage 27440 1 - Live 0xc0127000
sd_mod 12080 2 - Live 0xc011e000
scsi_mod 71360 2 usb_storage,sd_mod, Live 0xc0187000
usbcore 103584 4 ehci_hcd,uhci_hcd,usb_storage, Live 0xc016c000
vfat 8736 1 - Live 0xc0123000
fat 44528 1 vfat, Live 0xc0131000
nls_iso8859_15 3328 0 - Live 0xc00bf000
nls_iso8859_1 2816 1 - Live 0xc00bd000
nls_cp437 4352 1 - Live 0xc00ba000
nls_base 4576 5 vfat,fat,nls_iso8859_15,nls_iso8859_1,nls_cp437, Live 0xc009e000wlan_scan_sta 9568 0 - Live 0xc0093000
wlan_scan_ap 3072 0 - Live 0xc007e000
wlan_xauth 416 0 - Live 0xc0091000
wlan_wep 4576 0 - Live 0xc009b000
wlan_tkip 10752 0 - Live 0xc0097000
wlan_ccmp 6112 0 - Live 0xc006c000
wlan_acl 2880 0 - Live 0xc006f000
ath_pci 85424 0 - Live 0xc00a1000
ath_rate_sample 8512 1 ath_pci, Live 0xc0071000
ath_hal 207072 3 ath_pci,ath_rate_sample, Live 0xc00ea000
wlan 161792 10 wlan_scan_sta,wlan_scan_ap,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,wlan_acl,ath_pci,ath_rate_sample, Live 0xc00c1000
pppoe 10816 0 - Live 0xc005e000
pppox 1424 1 pppoe, Live 0xc006a000
ppp_generic 26368 2 pppoe,pppox, Live 0xc0076000
slhc 5600 1 ppp_generic, Live 0xc0067000
switch_robo 3920 0 - Live 0xc0065000
switch_core 5056 1 switch_robo, Live 0xc0062000
root@OpenWrt:~#
# nbd suggested using vlan1 on Feb18/06
root@OpenWrt:~#ifconfig vlan1 216.111.111.46
root@OpenWrt:~#ifconfig vlan1
vlan1 Link encap:Ethernet HWaddr 00:09:5B:F7:A2:7C
inet addr:216.111.111.46 Bcast:216.111.111.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:1080 (1.0 KiB)
root@OpenWrt:~#ifconfig ppp up
ifconfig: ppp: error fetching interface information: Device not found
root@OpenWrt:~#ifconfig ppp0 up
SIOCGIFFLAGS: No such device
root@OpenWrt:~#
root@OpenWrt:~#ping -c 5 216.111.111.14
# one of the nameservers in /etc/resolv.conf results in 100 % packet loss
root@OpenWrt:~# ping -c 5 216.111.111.1
# my own gateway results in 100 % packet loss
root@OpenWrt:~# ping -c 5 215.111.111.46
# my own wan interface results in 100 % SUCCESS.
root@OpenWrt:~#
root@OpenWrt:~#iptables -A FORWARD -i br0 -o 216.111.111.46 -j ACCEPT
# same ping results without it as those above without the iptables setting
root@OpenWrt:~#
root@OpenWrt:~#cat /etc/config/network
#### VLAN configuration
vlan0hwname=et0
vlan1hwname=et0
vlan0ports="0 1 2 3 5*"
vlan1ports="4 5"
#### LAN configuration
lan_proto="static"
lan_ifname="br0"
lan_ifnames="vlan0 eth1"
lan_ipaddr="192.168.1.1"
# lan_dns="192.168.1.1"
lan_gateway="192.168.1.1"
# The above works flawlessly with the router plugged into the LAN HUB
#### WAN configuration
# wan_proto: WAN protocol, available protocols:
# none: disable
# dhcp: DHCP
# static: Static IP
# pppoe: PPP over Ethernet
# pptp: Point-to-Point tunneling Protocol
# for pppoe and pptp you need to use wan_ifname="ppp0"
# wan_proto=dhcp
wan_proto="pppoe"
pppoe_ifname="vlan1"
ppp_username="myuserID@myisp.com"
ppp_passwd="mypasswrd"
# wan_ifname="vlan1"
wan_ifname="ppp0"
wan_device="vlan1"
wan_ipaddr="216.111.111.46"
# wan_ipaddr="192.168.0.2"
wan_netmask="255.255.255.0"
# wan_gateway="192.168.0.1"
wan_gateway="216.111.111.1"
# wan_dns="192.168.0.1"
## PPP over Ethernet and PPTP
# wan_ifname="ppp0"
# same as above
# pptp_server_ip="192.168.0.1"
root@OpenWrt:~#
Still no ppp0 and still unable to ping outside of my own IP (ie. 216.111.111.46)
Any suggestions are welcome.