changing IP

changing IP

Post by dsavits » Sun, 02 Feb 2003 07:21:03



I am changing my network from 192.168.0.x to 192.168.1.x.  To that end, I
altered settings in /etc/rc.conf. Do I need to change anything else?

The computer is currently not booting, but is instead sitting on sendmail
startup ...

FreeBSD 4.7

Thanks,

-d

 
 
 

changing IP

Post by Dave Uhrin » Sun, 02 Feb 2003 06:33:36



> I am changing my network from 192.168.0.x to 192.168.1.x.  To that end, I
> altered settings in /etc/rc.conf. Do I need to change anything else?

> The computer is currently not booting, but is instead sitting on sendmail
> startup ...

Fix /etc/hosts.

 
 
 

changing IP

Post by dsavits » Sun, 02 Feb 2003 07:32:25




> > I am changing my network from 192.168.0.x to 192.168.1.x.  To that end,
I
> > altered settings in /etc/rc.conf. Do I need to change anything else?

> > The computer is currently not booting, but is instead sitting on
sendmail
> > startup ...

> Fix /etc/hosts.

I fixed that too, but still bootup stalls at sendmail, and once it gets
passed it (about 5 minutes it seems) i still can't access the internet.  Any
ideas?

-d

 
 
 

changing IP

Post by dsavits » Sun, 02 Feb 2003 07:44:18






> > > I am changing my network from 192.168.0.x to 192.168.1.x.  To that
end,
> I
> > > altered settings in /etc/rc.conf. Do I need to change anything else?

> > > The computer is currently not booting, but is instead sitting on
> sendmail
> > > startup ...

> > Fix /etc/hosts.

> I fixed that too, but still bootup stalls at sendmail, and once it gets
> passed it (about 5 minutes it seems) i still can't access the internet.
Any
> ideas?

also, I can view web pages served from freebsd and i can ping it, but ssh is
*very* slow.

-d

 
 
 

changing IP

Post by Dave Uhrin » Sun, 02 Feb 2003 06:54:32








>> > > I am changing my network from 192.168.0.x to 192.168.1.x.  To that
> end,
>> I
>> > > altered settings in /etc/rc.conf. Do I need to change anything else?

>> > > The computer is currently not booting, but is instead sitting on
>> sendmail
>> > > startup ...

>> > Fix /etc/hosts.

>> I fixed that too, but still bootup stalls at sendmail, and once it gets
>> passed it (about 5 minutes it seems) i still can't access the internet.
> Any
>> ideas?

Is your FQDN in /etc/hosts with the new IP address?  Not just the hostname
but hostname.domain.whatever.

Quote:> also, I can view web pages served from freebsd and i can ping it, but ssh
> is *very* slow.

ssh to where?  Another host on your LAN?  Fix the /etc/hosts file on that
machine.
 
 
 

changing IP

Post by dsavits » Sun, 02 Feb 2003 08:15:37









> >> > > I am changing my network from 192.168.0.x to 192.168.1.x.  To that
> > end,
> >> I
> >> > > altered settings in /etc/rc.conf. Do I need to change anything
else?

> >> > > The computer is currently not booting, but is instead sitting on
> >> sendmail
> >> > > startup ...

> >> > Fix /etc/hosts.

> >> I fixed that too, but still bootup stalls at sendmail, and once it gets
> >> passed it (about 5 minutes it seems) i still can't access the internet.
> > Any
> >> ideas?

> Is your FQDN in /etc/hosts with the new IP address?  Not just the hostname
> but hostname.domain.whatever.

> > also, I can view web pages served from freebsd and i can ping it, but
ssh
> > is *very* slow.

> ssh to where?  Another host on your LAN?  Fix the /etc/hosts file on that
> machine.

my gateway is 192.168.1.1
my windows computer is 192.168.1.2
freebsd1 is 192.168.1.23
freebsd2 is 192.168.1.25

the 2 freebsd computers can ping each other as well as the windows computer.
windows can ping both freebsd computers.
i can ssh to the freebsd computers, but there is a several minute delay to
both send the username as well as the password.
windows can get to the internet.
freebsd cannot get to the internet

the only changes i made to freebsd was to change (in /etc/rc.conf)
ifconfig_dc0="inet 192.168.0.25 netmask 255.255.255.255" to
ifconfig_dc0="inet 192.168.1.25 netmask 255.255.255.255"
and change
defaultrouter="192.168.0.1" to
defaultrouter="192.168.1.1"

in /etc/hosts i also just went through and changed the 0's to 1's.

?

-d

 
 
 

changing IP

Post by jp » Sun, 02 Feb 2003 07:34:26


[snip: 192.168.0.* -> 192.168.1.* changeover]

Quote:

> also, I can view web pages served from freebsd and i can ping it, but ssh is
> *very* slow.

Does the gate have a dns server on it? That needs to be fixed too, then.
And /etc/resolv.conf, too.

Sometimes a grep -rF "192.168.0" /etc/* can be enlightening. :-)

--
  j p d (at) d s b (dot) t u d e l f t (dot) n l .

 
 
 

changing IP

Post by dsavits » Sun, 02 Feb 2003 08:55:12




> [snip: 192.168.0.* -> 192.168.1.* changeover]

> > also, I can view web pages served from freebsd and i can ping it, but
ssh is
> > *very* slow.

> Does the gate have a dns server on it? That needs to be fixed too, then.

The gateway just forwards DNS requests.

Quote:> And /etc/resolv.conf, too.

In hindsight, this seems pretty obvious.  Thanks for the help.

Quote:

> Sometimes a grep -rF "192.168.0" /etc/* can be enlightening. :-)

Indeed.  Thanks.

-d

Quote:> --
>   j p d (at) d s b (dot) t u d e l f t (dot) n l .

 
 
 

changing IP

Post by Dave Uhrin » Sun, 02 Feb 2003 08:25:46











>> >> > > I am changing my network from 192.168.0.x to 192.168.1.x.  To
>> >> > > that
>> > end,
>> >> I
>> >> > > altered settings in /etc/rc.conf. Do I need to change anything
> else?

>> >> > > The computer is currently not booting, but is instead sitting on
>> >> sendmail
>> >> > > startup ...

>> >> > Fix /etc/hosts.

>> >> I fixed that too, but still bootup stalls at sendmail, and once it
>> >> gets passed it (about 5 minutes it seems) i still can't access the
>> >> internet.
>> > Any
>> >> ideas?

>> Is your FQDN in /etc/hosts with the new IP address?  Not just the
>> hostname but hostname.domain.whatever.

>> > also, I can view web pages served from freebsd and i can ping it, but
> ssh
>> > is *very* slow.

>> ssh to where?  Another host on your LAN?  Fix the /etc/hosts file on
>> that machine.

> my gateway is 192.168.1.1
> my windows computer is 192.168.1.2
> freebsd1 is 192.168.1.23
> freebsd2 is 192.168.1.25

> the 2 freebsd computers can ping each other as well as the windows
> computer. windows can ping both freebsd computers. i can ssh to the
> freebsd computers, but there is a several minute delay to both send the
> username as well as the password. windows can get to the internet.
> freebsd cannot get to the internet

> the only changes i made to freebsd was to change (in /etc/rc.conf)
> ifconfig_dc0="inet 192.168.0.25 netmask 255.255.255.255" to
> ifconfig_dc0="inet 192.168.1.25 netmask 255.255.255.255" and change
> defaultrouter="192.168.0.1" to
> defaultrouter="192.168.1.1"

> in /etc/hosts i also just went through and changed the 0's to 1's.

Populate the /etc/hosts files on both BSD machines with the IP addresses,
FQDNs of all boxes and their hostnames.  Populate
c:\winnt\system32\drivers\etc\hosts on the windows box with the same
information.  The hosts file in Win9X-ME is c:\windows\hosts.

You only have 3 machines here which means 4 lines must be typed one time
and then transferred by FTP to the other 2 machines.

Services such as telnetd, ftpd and sshd do a reverse name lookup on their
clients.  If you are not running a local DNS you have to populate the
hosts files or you can just sit and wait for the reverse lookup to time
out.

 
 
 

changing IP

Post by Aaron Baughe » Sun, 02 Feb 2003 08:06:01



> the only changes i made to freebsd was to change (in /etc/rc.conf)
> ifconfig_dc0="inet 192.168.0.25 netmask 255.255.255.255" to
> ifconfig_dc0="inet 192.168.1.25 netmask 255.255.255.255"

Netmasks should be 255.255.255.0 (probably, unless you're playing with
subnets).  With these netmasks, your systems don't know how to find
192.168.1.1, or any other system except themselves for that matter.

--
Aaron

 
 
 

changing IP

Post by dsavits » Sun, 02 Feb 2003 11:12:32




> > the only changes i made to freebsd was to change (in /etc/rc.conf)
> > ifconfig_dc0="inet 192.168.0.25 netmask 255.255.255.255" to
> > ifconfig_dc0="inet 192.168.1.25 netmask 255.255.255.255"

> Netmasks should be 255.255.255.0 (probably, unless you're playing with
> subnets).

oops, that's a typo.
 
 
 

changing IP

Post by Kim Jongu » Wed, 05 Feb 2003 00:35:09


On Fri, 31 Jan 2003 22:21:03 GMT


> I am changing my network from 192.168.0.x to 192.168.1.x.  To that end, I
> altered settings in /etc/rc.conf. Do I need to change anything else?

> The computer is currently not booting, but is instead sitting on sendmail
> startup ...

> FreeBSD 4.7

> Thanks,

> -d

i've suffered 'stalling on sendmail process'.
i solved that problem with a kernel-recompiling.
the point is that i removed configs associated with IPv6 (ex, INET6, gif ...).
of course, i do not use IPv6 at all...

anyway, that way take care of me. :|