Date: Tue, 18 May 1999 23:27:08 -0500 From: "Doug Poland" <dpoland@execpc.com> To: <freebsd-questions@freebsd.org> Subject: ppp, domains, and routing - Uncle :-( Message-ID: <000201bea1b0$067ffe00$7a01140a@egypt>
next in thread | raw e-mail | index | archive | help
Well, I give up. I'm trying to configure a 3.1-RELEASE machine to work on my corporate intranet and dial out to my ISP (dynamic IPs). User ppp dials and connects but it appears that my box is trying to route everything through my intranet gateway, not ppp (tun0?). I must admit I really don't understand how all the routing and domain pieces of the puzzle work together. The man pages, FAQs, tutorials, and diaries I've checked each give me an insight, but since I don't understand the big picture, I can't get the connectivity I want. This is what I'm trying to do...My FreeBSD computer (MyBSD) is on the corporate intranet (it happens to be Novell w/TCP/IP). I have the IP addresses of the gateway and name server, and they gave me a static IP address. I also have all the IP settings for my ISP (who doles out dynamic IPs). So I set up my fbsd box thusly... MyBSD# cat /etc/resolv.conf domain MyISP.com # ISP gives me an IP when I connect nameserver 169.207.1.3 # ISP primary DNS nameserver 204.29.202.6 # ISP secondary DNS domain MyIntratnet.com nameserver 10.20.30.40 # names have been changed to protect the innocent MyBSD# cat /etc/rc.conf ... network_interfaces "ppp0 ed0 lo0" ifconfig_edo="inet 10.20.30.111 netmask 255.255.255.0" defaultrouter="10.20.30.40" hostname="MyBSD.MyIntranet.com" ... MyBSD# cat /etc/hosts ... 127.0.0.1 localhost.MyIntranet.com localhost 10.20.30.111 MyBSD.MyIntranet.com MyBSD 10.20.30.111 MyBSD.MyIntranet.com. 10.20.30.40 MyIntranet 169.207.1.3 earth.execpc.com 204.29.202.6 comet.execpc.com ... MyBSD# cat /etc/host.conf hosts bind PPP ON MyBSD> show route Destination Gateway Flags Netif default 10.20.30.40 UGSc ed0 10.20.30/24 link#1 UC ed0 10.20.30.40 link#1 UHLW ed0 10.20.30.122 0:80:c7:a8:c2:8d UHLW ed0 127.0.0.1 127.0.0.1 UH lo0 169.207.1.3 10.20.30.40 UGHW3 ed0 169.207.111.66 169.207.126.65 UH tun0 204.29.202.6 10.20.30.40 UGHW ed0 MyBSD# netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.20.30.40 UGSc 2 6 ed0 10.20.30/24 link#1 UC 0 0 ed0 10.20.30.40 link#1 UHRLW 3 21 ed0 17 MyBSD 0:80:c7:a8:c2:8d UHLW 1 12 ed0 994 localhost localhost UH 0 0 lo0 169.207.111.66 169.207.126.65 UH 0 0 tun0 MyBSD# ifconfig -a ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.20.30.111 netmask 0xffffff00 broadcast 10.20.30.255 ether 00:00:c0:e9:dc:9e lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1514 inet 169.207.126.65 --> 169.207.111.66 netmask 0xffff0000 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 So what am I doing wrong? Not only do I want to put the "right" numbers in the right place, I would like to understand why it does not work today and how proposed solutions do work. Thanks for your help! -- Doug Poland dpoland@execpc.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000201bea1b0$067ffe00$7a01140a>