這是ubuntu的設定檔
sudo nano /etc/network/interfaces
原來是dhcp
auto eth1
iface eth1 inet dhcp
把他改成靜態ip
auto eth1
iface eth1 inet static
address 192.168.2.xx
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
沒有留言:
張貼留言