Discussion:
Vmware virtual machines - some IP issues.
Tony Hernandez
2003-02-12 14:42:46 UTC
Permalink
Hi all,

I am running 1.6 in a vmware virtual machine and I'm having some
IP issues. When I use:
Ifconfig pcn0 128.227.47.243 netmask 255.255.255.0 up

It brings up the pcn0 int just fine. I can ping my default gateway which
is 127.228.47.1.

when I run :
route add default 127.228.47.1

Then I cant even ping the default gateway or even my own IP adrress.


This is strange since I used the very same information in sysinst and
was able to download the sets from ftp.netbsd.org with no issue. However
DHCP will not auto configure either. It makes no sense to me. Maybe IPv6
in the kernel is interfering ? If so how do I turn it off?

rubikan# ifconfig -a

pcn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:50:56:4b:c9:26
media: Ethernet autoselect (autoselect)
inet 128.227.47.243 netmask 0xffffff00 broadcast 128.227.47.255
inet6 fe80::250:56ff:fe4b:c926%pcn0 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33220
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128


rubikan# netstat -rn

Internet:
Destination Gateway Flags Refs Use Mtu
Interface
localhost localhost UH 0 0 33220 lo0
128.227.47/24 link#1 UC 2 0 -
pcn0
128.227.47.1 00:90:2b:75:d8:00 UHLc 0 5 -
pcn0
128.227.47.36 00:10:4b:b5:f7:7f UHLc 1 197 -
pcn0


While no default gateway:

rubikan# ping 128.227.47.1

PING 128.227.47.1 (128.227.47.1): 56 data bytes
64 bytes from 128.227.47.1: icmp_seq=0 ttl=255 time=1.833 ms
64 bytes from 128.227.47.1: icmp_seq=1 ttl=255 time=1.053 ms
^C
----128.227.47.1 PING Statistics----
2 packets transmitted, 2 packets received, 0.0% packet loss


Then adding default:
rubikan# route add default 128.227.47.1

rubikan# ping 128.227.47.1

^C

Nothing happens...

DHCP will not get an address either, dhclient complains that network is
down and never gets a reply from the dhcp server.



Any ideas would be greatly appreciated. - Thanks guys -
--
Tony Hernandez
Computer Programmer
Division of Housing
University of Florida
Tony Hernandez
2003-02-12 15:09:56 UTC
Permalink
Arf, I did make a typo there that was not copied from the terminal =). I
am inputting the correct gateway. I have tried this many times, yea it
should be 128.227.47.1

I wish it was that easy, but it seems to be acting very strange. I mean
why wont DHCP work even when nothing is configured for the card?






-----Original Message-----
From: Daniel Eggert [mailto:***@mac.com]
Sent: Wednesday, February 12, 2003 9:49 AM
To: Tony Hernandez
Subject: Re: Vmware virtual machines - some IP issues.



On onsdag, feb 12, 2003, at 15:42 Europe/Copenhagen, Tony Hernandez
Post by Tony Hernandez
route add default 127.228.47.1
You've got a typo here. Shouldn't this be 128.x.x.x not 127.x.x.x ? That
would certainly explain the behaviour.

Daniel
Tony Hernandez
2003-02-12 18:33:15 UTC
Permalink
I also have found out that trying to change the media type to 10BaseT
with the 'media' flag in ifconfig causes the virtual machine to crash.
Maybe it just doesn't want to work correctly. I was going to test out
some network tools in a vm before actually configuring a machine to put
to the job doing it. But I guess I may just have to bite the bullet and
do it on a machine instead of using vmware. Which was my first thought
and it was out of my control at the time.

Loading...