Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 04-26-2012, 12:49 PM   #1
aurora72
Major Leaguer
 
Join Date: Mar 2009
Location: Turkey
Posts: 252
There are 2 "inet"s in ifconfig

Hi

when I #ifconfig in Terminal, there are 2 inet entries:


One of them (inet 192.168.2.1) is redundant. How to get rid of it?

I know a command called networksetup with the -setmanual option, could that be used to remove the redundant inet?
__________________
http://j1307.hizliresim.com/1c/z/qyw5h.png
Mac mini G4 1.25GHzLeopard 10.5.8, Mac mini C2Duo 2.0GHz Lion 10.7.2

Last edited by aurora72; 04-26-2012 at 01:36 PM.
aurora72 is offline   Reply With Quote
Old 04-27-2012, 01:47 AM   #2
SirDice
MVP
 
Join Date: Aug 2009
Posts: 1,119
Code:
ifconfig en3 192.168.2.1 -alias
That should remove it.
SirDice is offline   Reply With Quote
Old 04-27-2012, 02:40 AM   #3
aurora72
Major Leaguer
 
Join Date: Mar 2009
Location: Turkey
Posts: 252
I've tried that but that seems to last only temporarily.

After some time has passed or after a restart the en3 's got the same 2 inets again, thanks.
__________________
http://j1307.hizliresim.com/1c/z/qyw5h.png
Mac mini G4 1.25GHzLeopard 10.5.8, Mac mini C2Duo 2.0GHz Lion 10.7.2
aurora72 is offline   Reply With Quote
Old 04-27-2012, 05:52 AM   #4
aurora72
Major Leaguer
 
Join Date: Mar 2009
Location: Turkey
Posts: 252
Further info: The en3 interface is actually a USB-Ethernet device and I have once assigned it the IP address of 192.168.2.1 then changed it to 192.168.1.41. I did this for Internet Sharing, i.e. to share the Ethernet (en0) with USB-Ethernet device. Now, I've set up all interfaces to have 192.168.1.x IPs and so the en3 must have 192.168.1.x IP, but whenever I connect any device to en3, they cannot communicate because the en3 is assigned 192.168.2.1

This unwanted IP of 192.168.2.1 still comes up, how to get rid of it for good? Thanks.
__________________
http://j1307.hizliresim.com/1c/z/qyw5h.png
Mac mini G4 1.25GHzLeopard 10.5.8, Mac mini C2Duo 2.0GHz Lion 10.7.2
aurora72 is offline   Reply With Quote
Old 04-27-2012, 09:16 PM   #5
leamanc
Triple-A Player
 
Join Date: Apr 2005
Posts: 157
Do you have Internet Sharing turned on? If so, I can guarantee that's where the second 'inet' is coming from.

If that's not it, I would suspect Parallels (or VMWare, or VirtualBox). Virtualization apps create virtual interfaces for routing internet to your VMs.
leamanc is offline   Reply With Quote
Old 04-28-2012, 04:54 AM   #6
aurora72
Major Leaguer
 
Join Date: Mar 2009
Location: Turkey
Posts: 252
Yes it's turned on. But it's the basic goal anyway: To transmit the Ethernet connection (en0) to the USB-Ethernet device (en3)

If I do not turn it on, then it's not transmitted at all.

Here are further info: The Ethernet is connected to DSL modem and the DSL is in bridge mode and the Mac connects to the Internet using PPPoE connection, i.e. it's the Mac that initiates the Internet (PPPoE) connection and in this way, the Mac's got a WAN IP.

Then by Internet sharing I plan to distribute the Internet to my Laptops, so I employed a USB-Ethernet converter (en3) which is connected to a Wireless Access Point. The en3 is supposed to have the IP 192.168.1.41 and the WAP is IP 192.168.1.244.

A similar setup with Internet Sharing on has worked at the start, actually but then I had shared the Internet from 192.168.1.x to 192.168.2.x.

The problem is, the Internet Sharing insists on remembering the 192.168.2.x IP. If only I could clear that IP...

Maybe delete some plist values, such as: /Library/Preferences/SystemConfiguration/com.apple.network.identification.plist ?
__________________
http://j1307.hizliresim.com/1c/z/qyw5h.png
Mac mini G4 1.25GHzLeopard 10.5.8, Mac mini C2Duo 2.0GHz Lion 10.7.2
aurora72 is offline   Reply With Quote
Old 08-24-2012, 10:28 AM   #7
Mattiie
Registered User
 
Join Date: Aug 2012
Posts: 1
192.168.2.1 sharing ip

To remove it you have to disable the sharing from preferences.
Mattiie is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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



All times are GMT -5. The time now is 06:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.