Date: Fri, 09 Jun 2000 10:07:01 -0700 From: "Raymundo M. Vega" <RaymundoVega@home.com> To: Ben Williams <williamsl@home.com> Cc: FreeBSD-Questions@FreeBSD.org Subject: Re: network setup Message-ID: <39412435.671FB8C1@home.com> References: <3938016B.268E0581@home.com> <2931.000604@home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ben Williams wrote: > > 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 <int_name> aaa.bbb.78.62 netmask 255.255.255.252 > RMV> route add default aaa.bbb.78.61 My mistake, netmask should be 250 on the last byte. sorry raymundo. > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39412435.671FB8C1>