Scott,<br><br>Here's a snippet from a /etc/network/interfaces file:<br><br># The primary network interface<br>auto eth0<br>iface eth0 inet static<br> address <a href="http://192.168.37.3">192.168.37.3</a><br> netmask
<a href="http://255.255.255.0">255.255.255.0</a><br> <span style="font-weight: bold;">up </span>route add default gw <a href="http://192.168.37.2">192.168.37.2</a> netmask <a href="http://0.0.0.0">0.0.0.0</a><br><br>
Notice the syntax of this snippet and the last line. The 'up' command executes whatever follows it at the time the network interface goes up, so the above lines will add a default route as eth0 goes up. I imagine you can use the same method to modify your /etc/resolv.conf file. As Clay mentioned, it's probably DHCP that's assigning the DNS/IP, and I believe changing the /etc/network/interfaces file to use a static IP should hopefully resolve that issue.
<br><br>Hope this helps,<br>Nihal<br><br><br><br><div><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Scott Harrison</b> <<a href="mailto:harris41@msu.edu">harris41@msu.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br><br>Here is my current situation. I am booting from<br>ubuntu live cd desktop version 6.06.1.<br>Please see my silly perl scripts below, and<br>help me find a better way!<br><br><br>If I don't do this,<br>perl -e 'while(1) {sleep(1);`echo "nameserver
<a href="http://35.8.2.41">35.8.2.41</a>" ><br>/etc/resolv.conf`;}' &<br><br><br>I then, after a few minutes, wind up with this:<br>root@ubuntu:~# more /etc/resolv.conf<br>search domain_not_set.invalid<br>nameserver
<a href="http://192.168.0.1">192.168.0.1</a><br><br><br>Also, I am doing this:<br>perl -e while(1) {sleep(1);`ifconfig eth0 <a href="http://192.168.2.1">192.168.2.1</a> netmask<br>255.255.255.0`;}?<br><br><br>because something in the system is auto-assigning
<br><a href="http://192.168.1.64">192.168.1.64</a> to eth0.<br><br><br>I tried adjusting<br>auto eth0<br>iface eth0 inet dhcp<br><br><br>to be<br>auto eth0<br>iface eth0 inet <a href="http://192.168.2.1">192.168.2.1</a><br>
<br><br>Also, for my LAN, I adapted various iptables commands<br>from <a href="http://www.tldp.org/HOWTO/Masquerading-Simple-HOWTO/summary.html">http://www.tldp.org/HOWTO/Masquerading-Simple-HOWTO/summary.html</a><br>to help allow other LAN computers to access the internet.
<br>I am wanting to use ubuntu live cd as a failsafe internet connection<br>tool for my LAN, but it seems cumbersome to<br>store/transcribe/thumbdrive/remixlivecd all those<br>iptable commands. Is there a simple GUI or countably few
<br>set of commands to do something similar?<br><br><br>I'm still in a happy place, but I must face Darth Vader<br>(aka these bugs and issues) again, and this mailing list<br>is my only hope.<br><br><br>Scott<br><br> -----
<br><br><br>*******************<br>** DISCLAIMER :P **<br>*******************<br><br>This E-mail message and any attachments may contain information.<br><br><br>_______________________________________________<br>linux-user mailing list
<br><a href="mailto:linux-user@egr.msu.edu">linux-user@egr.msu.edu</a><br><a href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user">http://mailman.egr.msu.edu/mailman/listinfo/linux-user</a><br></blockquote></div><br>