Date: Tue, 16 Jan 2001 11:32:11 -0500 From: Nathan Vidican <webmaster@wmptl.com> To: questions@freebsd.org Subject: routing static IP's through PPPOE Message-ID: <3A64778B.ABFFA8D9@wmptl.com>
next in thread | raw e-mail | index | archive | help
I would like to use a FreeBSD machine as a dedicated router, for a small subnet of 'real' IP's. The IP's will be assigned to us by our upstream ISP, whom we will be connecting to using PPPOE over DSL. Our current situation is as follows: ISP --> PSTN PSTN --> ISDN --> Our Building ISDN --> Cisco 1004 --> workgroup hub workgroup hub --> two FreeBSD machines w/ static IP's. The Cisco router currently has one IP address assigned to it, and then adds a route to it's default route through bri0, (the isdn interface). Essentially the equivelent of: add route 0.0.0.0 xxx.xxx.xxx.xxx add route xxx.xxx.xxx.xxx BRI0 We then simply setup our FreeBSD machines to use static IP address, and pointed their default route to the IP address of the router itself. The network is broken down as follows: 255.255.255.248 = netmask xxx.xxx.xxx.24 = network address xxx.xxx.xxx.25 = router address xxx.xxx.xxx.26/27 = FreeBSD machines (pri/sec DNS, web/ftp, email, proxy, natd, etc) Essentially what I'd like to do, is connect to the ISP via PPPOE, and use RIP (or ?) on the FreeBSD machine to actually route the same type of subnet (same size, just different range) to the two machines. Conceptually, I don't think it's possible to add a route to an IP address using an unbound interface; but I'm not really sure if the interface is actually unbound. Would the following configuration not work? Router Machine: netmask = 255.255.255.248 PPPOE assigned address = xxx.xxx.xxx.24 = network address Second NIC to workgroup hub = xxx.xxx.xxx.25 default route = ISP assigned gateway route to ISP gateway = xxx.xxx.xxx.24 run RIP daemon FreeBSD One: netmask 255.255.255.248 IP address xxx.xxx.xxx.26 plugged into NIC on workgroup hub default route = xxx.xxx.xxx.25 FreeBSD Two: netmask 255.255.255.248 IP address xxx.xxx.xxx.27 plugged into NIC on workgroup hub default route = xxx.xxx.xxx.25 Would the above example be correct? Would it work? Or am I missing something? If anyone has any comments, suggestions, or places to read-up more I'd be glad to hear from you. 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?3A64778B.ABFFA8D9>