Ubuntuでのネットワーク設定メモ
これも完全に個人用メモなので、そこのところよろ。
(1) ip設定
/etc/network/interfaceに記述
DHCPのときは
auto eth0 iface eht0 inet dhcp
IP固定の場合は
auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.254.255 gateway 192.168.1.1
設定を有効にするには
/etc/init.d/networking restart
(2) DNS設定
/etc/resolv.confに次を記述
nameserver 192.168.0.1
(3) Proxy設定
.bashrcに次を記述
export http_proxy=http://localhost:0000/
その後次を実行
source .bashrc