From owner-freebsd-questions Sun Jun 4 19:22:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.tn.home.com (ha1.rdc1.tn.home.com [24.2.7.66]) by hub.freebsd.org (Postfix) with ESMTP id 91BD437BBE7 for ; Sun, 4 Jun 2000 19:22:25 -0700 (PDT) (envelope-from williamsl@home.com) Received: from RELIABLE ([24.4.115.31]) by mail.rdc1.tn.home.com (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000605022217.NSJN29040.mail.rdc1.tn.home.com@RELIABLE>; Sun, 4 Jun 2000 19:22:17 -0700 Date: Sun, 4 Jun 2000 22:21:25 -0400 From: Ben Williams X-Mailer: The Bat! (v1.39) Personal Organization: Williams Enterprises X-Priority: 3 (Normal) Message-ID: <2931.000604@home.com> To: "Raymundo M. Vega" Cc: FreeBSD-Questions@FreeBSD.org Subject: Re[2]: network setup In-reply-To: <3938016B.268E0581@home.com> References: <3938016B.268E0581@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I tried this last week when I was on-site and I couldn't get out when I had .61 as the default route. Here's a copy of what I did (from memory): # ifconfig pn0 down # route delete default (the old ccc.ddd.25.1 route) # ifconfig dm0 ccc.ddd.78.62 netmask 255.255.255.252 media 100baseTX mediaopt full-duplex up # route add default ccc.ddd.78.61 ( I actually `script /var/tmp/ifconfig_script`ed this but I lost it and wont be able to redo it till I get back up on-site) # ping -c10 ccc.ddd.78.61 100% Packet loss. # ping -c10 w.x.y.z (an IP outside the network I'm working at) 100% Packet loss. # route delete default # ifconfig pn0 aaa.bbb.25.2 netmask 255.255.255.248 up # route add default aaa.bbb.25.1 and here things work and so they sit. Can anyone see something I did wrong? To recap my goal is to have two links to the net (aaa.bbb.25.1 and ccc.ddd.78.61) on their own NIC's (pn0 and dm0) with a "third" NIC (pn1) pointing the the "internal" (real IP's, not FUA) hosts on the network. -- Ben. Quoting Raymundo M. Vega Sunday, June 04, 2000 RMV> Ben Williams wrote: >> >> This is from one of my ISP's: >> >> > aaa.bbb.78.62 netmask 255.255.255.252 >> > gateway should be aaa.bbb.78.61 >> >> Is this possible? If so how? AFAIK .61 is the network address for that >> subnet... RMV> no .61 is the address of the default gateway, login as root and give RMV> the commands: RMV> ifconfig aaa.bbb.78.62 netmask 255.255.255.252 RMV> route add default aaa.bbb.78.61 1. This didn't work for me. (See above) 2. You can only have one default route and I want to keep both lines connected... RMV> good luck RMV> raymundo --Ben Williams mailto:received@email dot com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message