DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th July 2008
daemon-dd daemon-dd is offline
New User
 
Join Date: Jun 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default need some basic help on ifconfig

dear all,

For some reason my machine at work has changed its IP address (I am guessing a DHCP lease?). I can not access it. After reading man ifconfig I had a colleague try

#ifconfig rl0 inet 192.168.168.2 netmask 255.255.255.0 that did not work, he got a syntax error.

I am using 7.0 release. Can any one please tell me how to manually set the IP address of my machine as I have no other machine to try the command on, I really need to get access.

many thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 29th July 2008
jbhappy's Avatar
jbhappy jbhappy is offline
Real Name: Jeff
Port Guard
 
Join Date: Jun 2008
Location: MI, US
Posts: 30
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by daemon-dd View Post
dear all,

For some reason my machine at work has changed its IP address (I am guessing a DHCP lease?). I can not access it. After reading man ifconfig I had a colleague try

#ifconfig rl0 inet 192.168.168.2 netmask 255.255.255.0 that did not work, he got a syntax error.
that syntax is correct. can your colleague supply you with the exact error he got?
Reply With Quote
  #3   (View Single Post)  
Old 29th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

you need to add nameserver xxx.xxx.xxx.xxx to /etc/resolv.conf
you can add as many as you like there (1 line for each) (it's DNS server IP address)
Reply With Quote
  #4   (View Single Post)  
Old 29th July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

There are some possibilities:
  • Your colleague made a mistake entering the command..
  • You didn't give the colleague the right command... 192.168.168.x doesn't look very right.
  • rl0 isn't the correct interface..

We honestly can't diagnose problems like this... have you ever played that game where people pass the phrase? eventually it becomes scrambled/unintelligible.

Instead of changing the IP address of the interface, why don't you ask your colleague to determine the *new* IP assigned by DHCP. (If it's a server, it shouldn't be dynamic...).

Now, I assume you're on the same LAN as this system.. why can't you physically go check the state of the machine? or are you attempting to access a machine over the internet via a private IP?

Last edited by BSDfan666; 29th July 2008 at 02:15 PM.
Reply With Quote
  #5   (View Single Post)  
Old 29th July 2008
daemon-dd daemon-dd is offline
New User
 
Join Date: Jun 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default

Thanks,

what I had originally done is:

#dhclient rl0 (because I know that is the interface) my firewall/dhcp gave me 192.168.168.2 (that is my LAN). I am not on the same network (or even the same country), so yes I am accessing via internet.

Now I asked him to #ifconfig
that returns 192.168.168.3 my firewall is set to allow traffic to 192.168.168.2 and now asking my colleague to configure my firewall would be well.....

/etc/resolv.conf already has the nameserver set.

I called my colleague and unfortunately is out until tomorrow. So I will post the syntax error tomorrow.

As my colleague a windows user I sent the command he had to enter via email so there would be no confusion.

thanks again to all for the help!!!

Last edited by daemon-dd; 29th July 2008 at 03:24 PM.
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
Basic networking fail. diw OpenBSD General 13 31st March 2009 09:29 AM
Basic Perl arrays question stukov Programming 12 18th November 2008 08:44 PM
Basic sshd hardening anomie Guides 12 12th September 2008 03:39 AM
FreeBSD's Ifconfig for WEP tz24 FreeBSD General 15 13th June 2008 02:17 AM
ifconfig problem ichigo OpenBSD General 3 20th May 2008 10:59 PM


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


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