ubuntu网卡配置

来源:互联网 发布:阿里云服务器乱码 编辑:程序博客网 时间:2024/05/29 07:52

####################################配置本地连接###############################

/etc/network/interfaces

auto lo

iface lo inet loopback


auto eth0
iface eth0 inet static    //静态网址
#iface eth0 inet dhcp                               //动态网址
#pre-up ifconfig eth0 hw ether AA:AA:AA:AA:AA:AA    //mac值
address 192.168.1.218
netmask 255.255.255.0

gateway 192.168.1.1 //网关


====================================================================================

/etc/resolv.conf


nameserver 192.168.1.1    //dns







下面的网址是配置宽带连接,和无线网路的

http://blog.csdn.net/ermuzhi/article/details/8006310


原创粉丝点击