|
|
#1 |
|
Triple-A Player
Join Date: Mar 2009
Location: Turkey
Posts: 219
|
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?
__________________
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. |
|
|
|
|
|
#2 |
|
MVP
Join Date: Aug 2009
Posts: 1,119
|
Code:
ifconfig en3 192.168.2.1 -alias |
|
|
|
|
|
#3 |
|
Triple-A Player
Join Date: Mar 2009
Location: Turkey
Posts: 219
|
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.
__________________
Mac mini G4 1.25GHzLeopard 10.5.8, Mac mini C2Duo 2.0GHz Lion 10.7.2 |
|
|
|
|
|
#4 |
|
Triple-A Player
Join Date: Mar 2009
Location: Turkey
Posts: 219
|
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.
__________________
Mac mini G4 1.25GHzLeopard 10.5.8, Mac mini C2Duo 2.0GHz Lion 10.7.2 |
|
|
|
|
|
#5 |
|
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. |
|
|
|
|
|
#6 |
|
Triple-A Player
Join Date: Mar 2009
Location: Turkey
Posts: 219
|
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 ?
__________________
Mac mini G4 1.25GHzLeopard 10.5.8, Mac mini C2Duo 2.0GHz Lion 10.7.2 |
|
|
|
|
|
#7 |
|
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.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|