en2 ip address

4strings

Junior Member
Hi,

I am unable to connect to the wireless network at work, and i have a question.

Macbook with XP as the guest os. In OSX, if I start the terminal and run 'ifconfig', i see en1 (I'm assuming this is my AirPort) with IP address of 172.13.4.250. However, en2 (i think this is the parallels guest adapter) doesn't have an ip address.

I am able to get connected to my home network. When i do the same thing, en2 gets ip address 192.168.2.1.

My question is this, where does en2 supposed to get this 192.168.2.1 address? Is it by default?
this is outside my dhcp pool at home, so i know it's not from my wireless router.

Thanks in advance!
 
4strings said:
Hi,

I am unable to connect to the wireless network at work, and i have a question.

Macbook with XP as the guest os. In OSX, if I start the terminal and run 'ifconfig', i see en1 (I'm assuming this is my AirPort) with IP address of 172.13.4.250. However, en2 (i think this is the parallels guest adapter) doesn't have an ip address.

I am able to get connected to my home network. When i do the same thing, en2 gets ip address 192.168.2.1.

My question is this, where does en2 supposed to get this 192.168.2.1 address? Is it by default?
this is outside my dhcp pool at home, so i know it's not from my wireless router.

Thanks in advance!
Check the Parallels preferences and you will see a DHCP setting for the parallels adapter for host only networking.

The parallels adapter in the guest should obtain the IP address from the normal DHCP server on your network (router, DHCP server, etc.).

If you start Parallels without a LAN connection, or switch it mid stream, you will need to bounce Parallels or it won't pick up the change. Restarting the guest will not help - you have to shutdown and restart Parallels itself.
 
4strings,

192.168.2.1 is assigned to en2 when you turn on Internet Sharing in OSX, otherwise prl_dhcpd assigns en2 address which defaults to 10.37.129.2.
 
Thanks for the replies!

serv, i did have internet sharing at one point but i couldn't get that to work either. i've stopped it and now 'ifconfig' shows

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:16:cb:cc:3f:72
media: autoselect status: inactive
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::216:cbff:febb:d472%en1 prefixlen 64 scopeid 0x5
inet 172.24.145.55 netmask 0xfffff800 broadcast 172.24.151.255
ether 00:16:cb:bb:d4:72
media: autoselect status: active
supported media: autoselect
wlt1: flags=41<UP,RUNNING> mtu 1500
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
lladdr 00:16:cb:ff:fe:dc:d8:24
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::201:23ff:fe45:6789%en2 prefixlen 64 scopeid 0x8
ether 00:01:23:45:67:89
media: autoselect status: active
supported media: autoselect

notice that interface "en2" no longer has an ip addr assigned. is this normal? from your reply, i expected it to be 10.37.129.2.

btw, i still couldn't get wireless connection up in xp after disabling internet sharing.

thanks!
 
4strings,

What happens if you renew DHCP lease for Parallels Host-Guest Adapter via System Preferences? If that doesn't help issue 'ps axuww|grep prl_dhcpd' and see if it's running.
 
I am seeing the following errors in the system log:

Jun 28 13:15:50 NORMA kernel[0]: Parallels Workstation Hypervisor started.
Jun 28 13:15:51 NORMA kernel[0]: Parallels Workstation VMM Main driver started.
Jun 28 13:15:51 NORMA kernel[0]: com_parallels_kext_Pvsvnic: Ethernet address 00:01:23:45:67:89
Jun 28 13:15:51 NORMA prl_dhcp[229]: Can not bind to en1.
Jun 28 13:15:52 NORMA SystemStarter[71]: Parallels VirtualMachine drivers (143) did not complete successfully
Jun 28 13:15:52 NORMA SystemStarter[71]: The following StartupItems failed to properly start:
Jun 28 13:15:52 NORMA SystemStarter[71]: /Library/StartupItems/Parallels
Jun 28 13:15:52 NORMA SystemStarter[71]: - execution of Startup script failed

The adapter does not seem to get an address (although I am not actually using it at this point).

Mike
 
Mike,

prl_dhcpd is trying to bind to en1... which it generally shouldn't. Can you post 'ifconfig' output and also 'cat /Library/Parallels/.dhcpd_configuration'?
 
OK, I tried it again (disabled the Parallels adapter and re-enabled), rebooted and now the adapter has an IP address. I am still getting the following lines in the log though (any idea why). Thanks.

Jun 28 14:12:00 NORMA SystemStarter[77]: Parallels VirtualMachine drivers (143) did not complete successfully
Jun 28 14:12:00 NORMA SystemStarter[77]: The following StartupItems failed to properly start:
Jun 28 14:12:00 NORMA SystemStarter[77]: /Library/StartupItems/Parallels
Jun 28 14:12:00 NORMA SystemStarter[77]: - execution of Startup script failed

Mike
 
Last edited:
serv said:
4strings,

What happens if you renew DHCP lease for Parallels Host-Guest Adapter via System Preferences? If that doesn't help issue 'ps axuww|grep prl_dhcpd' and see if it's running.

serv, i'll try this when i'm in the office tomorrow. i'll let you know... thanks.
 
serv said:
4strings,

What happens if you renew DHCP lease for Parallels Host-Guest Adapter via System Preferences? If that doesn't help issue 'ps axuww|grep prl_dhcpd' and see if it's running.

serv, i tried this out in the office and renewing the DHCP lease seemed to work to get an ip address assigned to the 'en2' address.

en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::201:23ff:fe45:6789%en2 prefixlen 64 scopeid 0x8
inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
ether 00:01:23:45:67:89
media: autoselect status: active
supported media: autoselect

However, i still couldn't get wireless connectivity to work in xp. to debug further, i installed ethereal and captured packets on the parallels adapter interface. i saw that dhcp discover messages were going out but nothing is received back from the dhcp server.

so i ran 'tcpdump -i en1' to monitor the traffic on my wireless interface (airport). i saw the outbound dhcp discover packets as well as replies from the server, so it seems that the problem has to do with incoming packets not forwarded back to the en2 interface so windows network adapter can see it.

here's the output of tcpdump.

listening on en1, link-type EN10MB (Ethernet), capture size 4096 bytes
14:22:25.221689 IP 0.0.0.0.bootpc > broadcasthost.bootps: BOOTP/DHCP, Request from 00:d7:62:5b:92:04 (oui Unknown), length: 300
0x0000: 4500 0148 0112 0000 8011 3894 0000 0000
0x0010: ffff ffff 0044 0043 0134 86ea 0101 0600
0x0020: e7a8 2851 0000 8000 0000 0000 0000 0000
0x0030: 0000 0000 0000 0000 00d7 625b 9204 0000
0x0040: 0000 0000 0000 0000 0000 0000 0000 0000
0x0050: 0000 0000 0000 0000 0000 0000 0000 0000
0x0060: 0000 0000 0000 0000 0000 0000 0000 0000
0x0070: 0000 0000 0000 0000 0000 0000 0000 0000
0x0080: 0000 0000 0000 0000 0000 0000 0000 0000
0x0090: 0000 0000 0000 0000 0000 0000 0000 0000
0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000
0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000
0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000
0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000
0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000
0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000
0x0100: 0000 0000 0000 0000 6382 5363 3501 0174
0x0110: 0101 3d07 0100 d762 5b92 040c 0c63 6c69
0x0120: 6666 2d6d 6163 2d78 703c 084d 5346 5420
0x0130: 352e 3037 0b01 0f03 062c 2e2f 1f21 f92b
0x0140: ff00 0000 0000 0000
14:22:25.433348 IP 4strings.xxx.net.49531 > dc.xxx.net.domain: 58679+ PTR? 0.0.0.0.in-addr.arpa. (38)
0x0000: 4500 0042 7215 0000 4011 0f24 ac18 9137
0x0010: ac18 100a c17b 0035 002e 462a e537 0100
0x0020: 0001 0000 0000 0000 0130 0130 0130 0130
0x0030: 0769 6e2d 6164 6472 0461 7270 6100 000c
0x0040: 0001
14:22:25.435123 IP dc.xxx.net.domain > 4strings.xxx.net.49531: 58679 NXDomain* 0/1/0 (113)
0x0000: 4500 008d 25ad 0000 7e11 1d41 ac18 100a
0x0010: ac18 9137 0035 c17b 0079 7188 e537 8583
0x0020: 0001 0000 0001 0000 0130 0130 0130 0130
0x0030: 0769 6e2d 6164 6472 0461 7270 6100 000c
0x0040: 0001 0130 0769 6e2d 6164 6472 0461 7270
0x0050: 6100 0006 0001 0000 0e10 0031 0a64 636a
0x0060: 6e70 726d 7263 3104 6a6e 7072 036e 6574
0x0070: 0005 6164 6d69 6ec0 4b00 0000 0100 0003
0x0080: 8400 0002 5800 0151 8000 000e 10
14:22:26.450817 IP 4strings.xxx.net.49532 > dc.xxx.net.domain: 3551+ PTR? 10.16.24.172.in-addr.arpa. (43)
0x0000: 4500 0047 723a 0000 4011 0efa ac18 9137
0x0010: ac18 100a c17c 0035 0033 ec9a 0ddf 0100
0x0020: 0001 0000 0000 0000 0231 3002 3136 0232
0x0030: 3403 3137 3207 696e 2d61 6464 7204 6172
0x0040: 7061 0000 0c00 01
...

any thoughts on what could be wrong?

thanks.
 
serv,

btw, what tells osx that a packet needs to be forwarded to the en2 interface? is it the mac address?

the reason i ask is because the mac address in the dhcp discover message does not match the ethernet mac address of interface 'en2'.

from tcpdump:
Request from 00:d7:62:5b:92:04 (oui Unknown), length: 300

ifconfig:
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMP LEX,MULTICAST> mtu 1500
inet6 fe80::201:23ff:fe45:6789%en2 prefixlen 64 scopeid 0x8
inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
ether 00:01:23:45:67:89 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
media: autoselect status: active
supported media: autoselect

thanks again.
 
i don't think this is the problem. i just tried at home and i see the same thing (different mac addresses) but it works in my home network.

so i'm not sure what else to look for.

any help would be great.

thanks!
 
decided to try host-networking with internet sharing

serv,

i gave up on bridging from my airport to en2. reading some of the threads, it looks like host-networking with internet sharing is the recommended configuration if i want to share vpn connectivity.

I'm trying this at home now and configured parallels network adapter to host-only networking, configured internet sharing in osx. ifconfig now shows this:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:16:cb:cc:3f:72
media: autoselect status: inactive
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::216:cbff:febb:d472%en1 prefixlen 64 scopeid 0x5
ether 00:16:cb:bb:d4:72
media: autoselect status: active
supported media: autoselect
wlt1: flags=41<UP,RUNNING> mtu 1500
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
lladdr 00:16:cb:ff:fe:dc:d8:24
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::201:23ff:fe45:6789%en2 prefixlen 64 scopeid 0x8
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
ether 00:01:23:45:67:89
media: autoselect status: active
supported media: autoselect

This looks correct to me. en2 has the correct address (according to your prior post). Here's the issue that i'm seeing now.

- i have internet connectivity from osx
- i have internet connectivity from xp (i get address 192.168.2.2 and i can ping 192.168.2.1, which is my default gateway according to netstat -rn)
- problem is when i start my securepptp session in osx to connect to my office network. i get connected in osx and can reach my office network from osx. but when i switch to xp, my connectivity is lost. i can only ping my gateway 192.168.2.1, nothing past it.

i'm assuming that osx in this case should be doing the NATing since my office network has no clue about the 192.168.2 network. Is this supposed to work?

One thing i can do is start my securepptp session in xp, but this means none of my osx apps will have access to my office network.

Thoughts?

Thanks so much!
 
4strings,

In bridged mode (despite its name) Parallels doesn't actually forward packets to/from en2. VM packets are being sent/received directly on interface VM bridges to. The use for en2 comes in Host-Only mode.

There are no DHCP replies In the output you provided. Please run 'tcpdump -i en1 -nevvv -s 512 udp port 67' to see DHCP traffic only.

Regarding sharing your PPTP connection to XP: You should turn on Internet Sharing from ppp0 to en2 after you've logged into VPN.
On the other hand, given bridged or NAT mode works I don't see why you can't have two VPN connections (from OSX and from XP) unless VPN policy forbids more than 1 connection.
 
serv said:
4strings,

In bridged mode (despite its name) Parallels doesn't actually forward packets to/from en2. VM packets are being sent/received directly on interface VM bridges to. The use for en2 comes in Host-Only mode.

There are no DHCP replies In the output you provided. Please run 'tcpdump -i en1 -nevvv -s 512 udp port 67' to see DHCP traffic only.

Regarding sharing your PPTP connection to XP: You should turn on Internet Sharing from ppp0 to en2 after you've logged into VPN.
On the other hand, given bridged or NAT mode works I don't see why you can't have two VPN connections (from OSX and from XP) unless VPN policy forbids more than 1 connection.

serv,

i'll try to get internet sharing to work, if it doesn't work, then i'll get the output of tcpdump again for bridged mode.

i don't see the option to share "ppp0" to "en2", even after i've logged in to the vpn using pptp. i do see the interface though in ifconfig:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:16:cb:cc:3f:72
media: autoselect status: inactive
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::216:cbff:febb:d472%en1 prefixlen 64 scopeid 0x5
inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255
ether 00:16:cb:bb:d4:72
media: autoselect status: active
supported media: autoselect
wlt1: flags=41<UP,RUNNING> mtu 1500
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
lladdr 00:16:cb:ff:fe:dc:d8:24
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::201:23ff:fe45:6789%en2 prefixlen 64 scopeid 0x8
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
ether 00:01:23:45:67:89
media: autoselect status: active
supported media: autoselect

ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1444 <<<<<<<<<<<<<
inet 172.24.253.48 --> 172.24.253.3 netmask 0xffff0000

Regarding having 2 vpn connections (from osx and xp), as i said, i couldn't get past my default gateway 192.168.2.1 (in xp) as soon as i connect to my vpn in osx. if i first connect in xp, the vpn comes up fine there. but as soon as i start a vpn connect in osx, the xp connection drops (not because of 1 connection limit, but because my network connection is lost).

thanks!
 
serv,

how do i share interface ppp0 with xp? once i get my pptp connected in osx, i go to network sharing, and i don't see 'ppp0' as an interface to share.

thanks.
 
Back
Top