我的 Ubuntu 12.04 上配置了 3 个端口。
2 已绑定并用于 DRBL pxe 启动服务器和 Clonezilla
我想要将另一个用作互联网端口并将其设置为 DHCP。
我如何让 ubuntu 默认使用该端口,以便我在 clonezillaring 时可以访问互联网?
谢谢,
ifconfig 输出:
bond0 Link encap:Ethernet HWaddr 00:15:17:48:a6:24
inet addr:192.168.100.2 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fe48:a624/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:423118949 errors:0 dropped:603 overruns:0 frame:0
TX packets:290641418 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:372054944369 (372.0 GB) TX bytes:308595651240 (308.5 GB)
eth0 Link encap:Ethernet HWaddr e0:69:95:d1:db:ff
inet addr:192.168.10.63 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::e269:95ff:fed1:dbff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18545 errors:0 dropped:0 overruns:0 frame:0
TX packets:2025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4094743 (4.0 MB) TX bytes:265858 (265.8 KB)
Interrupt:20 Memory:fe700000-fe720000
eth1 Link encap:Ethernet HWaddr 00:15:17:48:a6:24
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:211494488 errors:0 dropped:245 overruns:0 frame:0
TX packets:145328734 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:185877441115 (185.8 GB) TX bytes:154310653091 (154.3 GB)
Interrupt:16 Memory:fe660000-fe680000
eth2 Link encap:Ethernet HWaddr 00:15:17:48:a6:24
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:211624448 errors:0 dropped:358 overruns:0 frame:0
TX packets:145312672 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:186177502078 (186.1 GB) TX bytes:154284981451 (154.2 GB)
Interrupt:17 Memory:fe620000-fe640000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1812 errors:0 dropped:0 overruns:0 frame:0
TX packets:1812 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:131568 (131.5 KB) TX bytes:131568 (131.5 KB)
答案1
去
/etc/NetworkManager/system-connections/
你的DHCP以太网端口根据第
[ipv4]
如果您想要自动 dhcp 配置,请将以下内容更改
method=manual
为并method=auto
删除dns=x.x.x.x
addresses=x.x.x.x
不要忘记
never-default=true
在相应的文件中添加其他端口/etc/NetworkManager/system-connections/