We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

cczona on 04/03/08


Tagged

server linux ubuntu internet ethernet networking


Versions (?)


Parallels bridged networking with Ubuntu Server


Published in: Bash 


If Ubuntu Server fails to resolve hostnames or find a network connection via Parallels 3 bridged networking, it may be attempting to use the wrong network interface.

  1. # what interfaces are supposed to be used?
  2. cat /etc/network/interfaces
  3.  
  4. # what interfaces are actually in use?
  5. ifconfig
  6.  
  7. # mine showed only 'lo' (local loopback) in use,
  8. # but eth0 was supposed to auto-init too.
  9. # so let's see what's happening when eth0 is attempted
  10. sudo ifdown -a
  11. sudo ifup -a
  12.  
  13. # voila! there is no such interface
  14. # edit the /etc/network/interfaces references to 'eth0' to 'eth1'
  15.  
  16. # then re-init...
  17. sudo ifdown -a
  18. sudo ifup -a
  19.  
  20. # re-confirm the new interface is now in use
  21. ifconfig

Report this snippet 

You need to login to post a comment.