2013年8月29日 星期四

[Internet] How to configure the network interface


[Internet] How to configure the network interface




  1.  sudo vim /etc/network/interfaces




    • Static

      iface eth0 inet static



      address 192.168.0.10

      netmask 255.255.255.0

      network 192.168.0.0

      broadcast 192.168.0.255

      gateway 192.168.0.1

      dns-nameservers 216.10.119.241

       


    • DHCP

      iface eth0 inet dhcp




  2. sudo ifconfig eth0 down , sudo ifconfig eth0 up



Reference :



0 意見:

張貼留言