Help with IFconfig!

S

StridingFigure

Guest
So I was playing around with the ifconfig command (probably not a smart thing to do when you don't know what you are doing) and I did something really stupid
%sudo ifconfig en1 10.0.1.1

from then on I haven't been able to communicate with my airport wireless router.

Any suggestions?
 
Joined
Jan 12, 2005
Messages
1,278
Reaction score
13
Points
38
Location
/home/sheffield/UK
Your Mac's Specs
12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
use the sys prefs to change it back as im not too sure what that will have done, cant be certain but it might have set you en1 interface to 10.0.1.1?
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
You have use the command to change the ip address for en1. I believe if you reboot your system you should be back to normal.
 
Joined
Mar 9, 2004
Messages
2,860
Reaction score
21
Points
38
Location
Miami FL
Your Mac's Specs
G4 1Ghz OS X 10.4.7
NAME
ifconfig - configure network interface parameters

SYNOPSIS
ifconfig [-L] [-m] interface [create] [address_family]
[address[/prefixlength] [dest_address]] [parameters]
ifconfig interface destroy
ifconfig -a [-L] [-d] [-m] [-u] [address_family]
ifconfig -l [-d] [-u] [address_family]
ifconfig [-L] [-d] [-m] [-u]

DESCRIPTION
Ifconfig is used to assign an address to a network interface and/or con-
figure network interface parameters. Ifconfig must be used at boot time
to define the network address of each interface present on a machine; it
may also be used at a later time to redefine an interface's address or
other operating parameters.

The following options are available:
address
For the DARPA-Internet family, the address is either a host name
present in the host name data base, hosts(5), or a DARPA Internet
address expressed in the Internet standard ``dot notation''.

It is also possible to use the CIDR notation (also known as the
slash notation) to include the netmask. That is, one can specify
an address like 192.168.0.1/16.

address_family
Specify the address family which affects interpretation of the
remaining parameters. Since an interface can receive transmis-
sions in differing protocols with different naming schemes, spec-
ifying the address family is recommended. The address or proto-
col families currently supported are ``inet'', ``inet6'',

dest_address
Specify the address of the correspondent on the other end of a
point to point link.
there is more, but this is likely beyond what's needed
 
OP
S

StridingFigure

Guest
Mmm....

Rebooting is always an option - tried that, no luck.

And I had read the manual thing before but I still don't get what that command would cause...
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
Okay, now we need some more information. How are you connecting to the internet?

Here is what comes to mind, run the system preferences application -> network or under the Apple menu bring up the network preferences. I am not near my Apple system at this time so I am not sure of the menu names. Once you are in the network tool, be sure that DHCP is turn on. Hopefully you can override your changes there.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top