网口0
1.输入 ifconfig eth0 192.168.1.231 netmask 255.255.255.0
2.ping网关 192.168.1.1
(会一直ping ,ping通可自行停止)
3.ping主机 192.168.1.230
(会一直ping ,ping通可自行停止)
网口1(网口1测试方法同网口0)
网线连接网口1 测试命令 ifconfig eth1 192.168.1.232 netmask 255.255.255.0
光口0
光纤收发器连接光口0 (注意:板卡连接光纤收发器光口灯亮,网口0时箭头朝下,网口1时箭头朝上)
1.输入以下命令
ethtool -s eth0 speed 1000 duplex full autoneg off
ifconfig eth0 down
ifconfig eth0 up
ifconfig eth0 192.168.1.231 netmask 255.255.255.0
2.ping网关 192.168.1.1
(会一直ping ,ping通可自行停止)
3.ping主机 192.168.1.230
(会一直ping ,ping通可自行停止)
光口1 (光口1测试方法同光口0)
光纤收发器连接光口1
1.测试命令
ethtool -s eth1 speed 1000 duplex full autoneg off
ifconfig eth1 down
ifconfig eth1 up
ifconfig eth1 192.168.1.232 netmask 255.255.255.0
作者:wjz 创建时间:2024-01-10 11:15
最后编辑:wjz 更新时间:2024-01-17 11:42
最后编辑:wjz 更新时间:2024-01-17 11:42