close

在使用 預先製作好的 VM檔案時,
內部配置有一張bridge 一張NAT 網卡,外面有dhcp server 會分發 ip 。
開了一陣子發現, 外面連不進去dhcp的那個 ip了,直覺先 /etc/init.d/networking restart 一下,
出現了 "failed to bring up eth0 " in Ubuntu

之後,會使用 ifconifig 看看是不是 dev 的name改變了,發現也沒有變動。
本來以為是,之前bind 的mac ,跟現在不一樣了 dhcp 才不能動,
改去 /etc/udev/rules.d/ check 一下 network 那個 file 。
發現並沒有產生這個file。

只好 refresh 一下 dhcp
sudo dhcpclient

It's Work ~

peicheng@TW-PCLIAO:~/code/git_col/repeating-phrases
$ ping 10.1.192.142
PING 10.1.192.142 (10.1.192.142) 56(84) bytes of data.
64 bytes from 10.1.192.142: icmp_req=1 ttl=64 time=0.320 ms
64 bytes from 10.1.192.142: icmp_req=2 ttl=64 time=1.74 ms
64 bytes from 10.1.192.142: icmp_req=3 ttl=64 time=0.596 ms



arrow
arrow

    peicheng 發表在 痞客邦 留言(0) 人氣()