DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default DHCP inet problem

Hello this is my small problem

i have my : /etc/hostname.bce0 = dhcp
after i reboot server it takes all the information needed form the DHCP

everything works fine but when i want to reassign the IP

#ifconfig bce inet 192.168.1.233 netmask 255.255.255.0

it takes forever to log in thru ssh and is impossible to resolve anything nslookup dig, after i change ip back to the original one everything goes back to normal

if i try to modify with #vi /etc/hostname.bce0 from dhcp to inet 192.168.1.233 netask 255.255.255.0 NONE and reboot same story

so i am lost
Reply With Quote
  #2   (View Single Post)  
Old 7th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by leon View Post
...when i want to reassign the IP

#ifconfig bce inet 192.168.1.233 netmask 255.255.255.0
I can only assume that "bce" above is a typo. Given other information presented, this should be "bce0".

It also is not clear from the information provided whether 192.168.1.233 had been the IP address provided by your ISP's DHCP server, or how you decided it use this particular private address. My guess is that this had been previously supplied by DHCP. If so, this may account for the following:
Quote:
it takes forever to log in thru ssh...
...which is frequently the tell-tale sign that DNS is confused. Section 8.22 of the FAQ covers this situation in more detail.

At this point, we simply don't have enough information to figure out what is going on. If you can help clarify the configuration, we may be able to help solve it.
Reply With Quote
  #3   (View Single Post)  
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

thanks ocicat for the reply

yes its bce0 i misstyped here

i have one static ip xx.xx.xx.xx ... and my isp deltacom need to point it to a specific local ip so i picked 192.168.1.233

the router dhcp gives ip's from 192.168.1.2 up to 192.168.1.229 and ISP does not provide username and password to configure router

i installed openbsd and left settings to dhcp so after installation i was assigned one ip and every ip dhcp assign openbsd go smooth but when i want to set ip to 192.168.1.233 it doesnt resolve anything ssh takes forever

there is no proxy or sendmail

the computer running openbsd 4.7 is a fresh installation that has been updated, before the update it had same problem

i am connecting to it from inside the lan from a machine running windows 2003 server standard, and i am using putty

thanks

Last edited by ocicat; 7th August 2010 at 07:54 AM. Reason: redacted public IP address
Reply With Quote
  #4   (View Single Post)  
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

one more thing to add

when i ssh to 192.168.1.233 login comes instant i type user then hit enter and it takes like a minute to ask for password after that speed is perfect just it doesnt resolve anything
Reply With Quote
  #5   (View Single Post)  
Old 7th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by leon View Post
i have one static ip xx.xx.xx.xx ... and my isp deltacom need to point it to a specific local ip so i picked 192.168.1.233
Provide a diagram of your configuration -- something similar to:
Code:
                             192.168.1.11
                                  /
                  192.168.1.10   /  +-- 192.168.1.12
                              \ /   /
            ISP ----------  router ----------------------- 192.168.1.14
                      DHCP      \ \
                                 \  +--192.168.1.13
                                  \
                            192.168.1.15
If it is easier to make something offline & attach, do so. Clearly identify all interfaces complete with their IP addresses.

Last edited by ocicat; 7th August 2010 at 07:55 AM. Reason: redacted public IP address
Reply With Quote
  #6   (View Single Post)  
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

Code:
ISP---Router(192.168.1.1)---Switcher----192.168.1.233
                                 |
                                 +----192.168.1.6

Last edited by ocicat; 7th August 2010 at 06:03 AM. Reason: edited for clarity
Reply With Quote
  #7   (View Single Post)  
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

192.168.1.6 and 192.168.1.233 connect thru a wire to same switcher
Reply With Quote
  #8   (View Single Post)  
Old 7th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by leon View Post
192.168.1.6 and 192.168.1.233 connect thru a wire to same switcher
The term is "switch".

What is the netmask implemented/assumed by the switch?
Quote:
the router dhcp gives ip's from 192.168.1.2 up to 192.168.1.229
You chose 192.168.1.233 because you felt this was outside the range provided by the router's DHCP server? Does the switch's documentation state that it will route packets not in the defined range?
Reply With Quote
  #9   (View Single Post)  
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

the router assign 255.255.255.0 netmask to everybody

yes i pick 192.168.1.233 to pint the static external ip address and technical support configure dhcp to assign ip address up to 192.168.1.229
Reply With Quote
Old 7th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by leon View Post
the router assign 255.255.255.0 netmask to everybody
So, can all internal hosts succesfully ping each other by IP address?
Quote:
yes i pick 192.168.1.233 to pint the static external ip address and technical support configure dhcp to assign ip address up to 192.168.1.229
Does the documentation state that the switch will handle addresses outside of the defined DHCP range?
Reply With Quote
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

correct
Reply With Quote
Old 7th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by leon View Post
correct
This answers which question?
Reply With Quote
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

yes both questions are correct the switch handle all requests,

i am able to connect from my house which is in southamerica to the openbsd machine using the static external address but i try anything to resolve like dnslookup google.com and it wont work
Reply With Quote
Old 7th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by leon View Post
i am able to connect from my house which is in southamerica to the openbsd machine using the static external address...
Identify the OpenBSD system in your diagram, or is it external to your home network?
Reply With Quote
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

that diagram is the network in USA and i have therem y openbsd PC

my home network is in Peru so i have to connect using ssh to xx.xx.xx.xx and it connects

Last edited by ocicat; 7th August 2010 at 07:53 AM. Reason: redacted public IP address
Reply With Quote
Old 7th August 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by leon View Post
everything works fine but when i want to reassign the IP

#ifconfig bce inet 192.168.1.233 netmask 255.255.255.0

it takes forever to log in thru ssh and is impossible to resolve anything...
It still sounds like you are having DNS issues.I hope this helps.
Reply With Quote
Old 7th August 2010
leon leon is offline
Port Guard
 
Join Date: Aug 2010
Posts: 10
Default

thanks i will

PS:i do not find the edit button to remove my external ip thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
match vs pass (changes in 4.7), and inet vs inet proto mikesg OpenBSD Security 4 12th June 2010 02:35 AM
net.inet.ip.portrange.* carpman FreeBSD General 10 27th May 2009 03:09 PM
W2K DHCP Issue DrJ Other OS 4 25th May 2009 07:19 PM
problem on my end or someone leaking dhcp? Calderon FreeBSD Security 4 24th February 2009 12:31 PM
obtain 2 ips via dhcp dextro FreeBSD General 2 6th February 2009 04:56 AM


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick