On Tue, Oct 20, 2009 at 6:37 AM, Marshall Hampton <hampto...@gmail.com> wrote:
> Hi William,
>
> Here's the output from "ifconfig" for my virtual box sage-4.1.2.  Note
> that the addresses for "eth0" and "eth1" were reversed the first time
> I ran it - I assume these are assigned randomly when virtual box
> starts up.  So apparently the "eth1" address is the one told to the
> user currently.

Thanks.   It *really* sucks that they are assigned randomly sometimes,
since this could cause huge problems, e.g., on the virtualbox build
farm I run I have ubuntu setup to assign a static ip address to eth1.
If ever eth0 and eth1 were swapped, then the network would just break.
 Fortunately, I have never seen this randomness behavior myself.

In any case, right now virtualbox always assigns 192.168 to the
host-only address, and 10.0 for the non-host-only address.  In fact,
it's always 10.0.2.15 for the NAT address for *every* virtual machine,
i.e., even the 15 doesn't change!  So instead of looking for the
address of eth1, I can change the script to look for the address that
isn't 10.0.*.

 -- William

> eth0      Link encap:Ethernet  HWaddr 08:00:27:E9:A7:2C
>          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:1524 (1.4 KiB)  TX bytes:1494 (1.4 KiB)
>          Interrupt:11 Base address:0xd020
>
> eth1      Link encap:Ethernet  HWaddr 08:00:27:EE:E5:47
>          inet addr:192.168.56.101  Bcast:192.168.56.255
> Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:216 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:33384 (32.6 KiB)  TX bytes:357196 (348.8 KiB)
>
> lo        Link encap:Local Loopback
>          inet addr:127.0.0.1  Mask:255.0.0.0
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:100 (100.0 B)  TX bytes:100 (100.0 B)
>
> /root/sage_notebook.sagenb/home/admin/0/cells/2
>
> -Marshall
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to