用dmesg命令確認ubuntu能夠認出你的LAN 卡
dmesg | grep -i eth
若果輸出的結果有你張LAN卡就OK.
例如
dmesg | grep -i eth
[ 31.842138] Driver 'sd' needs updating - please use bus_type methods
[ 36.497210] 0000:00:19.0: eth0: (PCI Express:2.5GB/s:Width x1) 00:1a:6b:5f:96:a6
[ 36.497213] 0000:00:19.0: eth0: Intel(R) PRO/1000 Network Connection
[ 36.497233] 0000:00:19.0: eth0: MAC: 5, PHY: 6, PBA No: ffffff-0ff
[ 38.508522] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 38.560847] 0000:00:19.0: eth0: Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
[ 38.560849] 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 38.561879] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 49.454109] eth0: no IPv6 routers present
接著 edit /etc/network/interfaces
auto eth0
iface eth0 inet static
address [your ip address]
netmask [your network mask]
network [your network id (option)]
broadcast [your broadcast address (option)]
gateway [your gateway ip]