Plug an Ethernet cable into the machine, and look in /var/adm/messages
for the "link up" notice:
banff[157]% grep "link up" /var/adm/messages
Sep 14 08:53:49 banff bge: [ID 801725 kern.info] NOTICE: bge0: link up
1000Mbps Full-Duplex (initialized)
Now you know your Ethernet device type, and can use DHCP or manual
network configuration:
# ifconfig bge0 plumb
# ifconfig bge0 dhcp
# ifconfig -a
or
# ifconfig bge0 plumb
# ifconfig bge0 up 10.0.0.15 netmask 255.255.255.0
# route add default 10.0.0.1
# ifconfig -a
for the "link up" notice:
banff[157]% grep "link up" /var/adm/messages
Sep 14 08:53:49 banff bge: [ID 801725 kern.info] NOTICE: bge0: link up
1000Mbps Full-Duplex (initialized)
Now you know your Ethernet device type, and can use DHCP or manual
network configuration:
# ifconfig bge0 plumb
# ifconfig bge0 dhcp
# ifconfig -a
or
# ifconfig bge0 plumb
# ifconfig bge0 up 10.0.0.15 netmask 255.255.255.0
# route add default 10.0.0.1
# ifconfig -a
本文介绍了如何通过简单的步骤配置机器的网络连接,并确定使用的网卡类型。首先,需要使用以太网线将设备连接到网络,然后检查系统日志以确认连接已建立并识别网卡类型。接下来可以通过几种方式配置网络:使用DHCP自动获取地址或者手动设置IP地址。
1165

被折叠的 条评论
为什么被折叠?



