有什么命令,或者方法吗?
7 个解决方案
#1
eth0 Link encap:Ethernet HWaddr 00:0c:29:fa:3c:8b
inet addr:122.137.59.27 Bcast:172.17.255.255 Mask:255.255.0.0
inet6 addr: fe80::20c:29ff:fefa:3c8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14405 errors:0 dropped:0 overruns:0 frame:0
TX packets:9077 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5355258 (5.1 MB) TX bytes:4239604 (4.0 MB)
Interrupt:17 Base address:0x1400
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:2620 errors:0 dropped:0 overruns:0 frame:0
TX packets:2620 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:440136 (429.8 KB) TX bytes:440136 (429.8 KB)
理解每行的参数含义就可以了,不过我是不了解
inet addr:122.137.59.27 Bcast:172.17.255.255 Mask:255.255.0.0
inet6 addr: fe80::20c:29ff:fefa:3c8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14405 errors:0 dropped:0 overruns:0 frame:0
TX packets:9077 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5355258 (5.1 MB) TX bytes:4239604 (4.0 MB)
Interrupt:17 Base address:0x1400
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:2620 errors:0 dropped:0 overruns:0 frame:0
TX packets:2620 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:440136 (429.8 KB) TX bytes:440136 (429.8 KB)
理解每行的参数含义就可以了,不过我是不了解
#2
运行以下命令就可以了。
ifconfig eth0 down
ifconfig eth0 up
ifconfig eth0 down
ifconfig eth0 up
#3
楼上给的命令不是叫人家把网络给切断了吗?
#4
其实linux下很奇怪的,你重启网络服务,它的计数器是不会清零的,但windows下却可以.
难道非要改网卡的驱动才行?
难道非要改网卡的驱动才行?
#5
你先断开网卡,再填IP和DNS,再连
#6
如果网卡驱动是一个 kernel module, 你可用 rmmod 命令卸载该模块, 再用ifup 命令启动网卡。这将中断网络通讯。
如果驱动是编译进内核了, 那只有重启机器一个办法了。
如果驱动是编译进内核了, 那只有重启机器一个办法了。
#7
接口不重启计数器是不会清零的,这在交换机、路由器接口上也是一样的
#1
eth0 Link encap:Ethernet HWaddr 00:0c:29:fa:3c:8b
inet addr:122.137.59.27 Bcast:172.17.255.255 Mask:255.255.0.0
inet6 addr: fe80::20c:29ff:fefa:3c8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14405 errors:0 dropped:0 overruns:0 frame:0
TX packets:9077 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5355258 (5.1 MB) TX bytes:4239604 (4.0 MB)
Interrupt:17 Base address:0x1400
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:2620 errors:0 dropped:0 overruns:0 frame:0
TX packets:2620 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:440136 (429.8 KB) TX bytes:440136 (429.8 KB)
理解每行的参数含义就可以了,不过我是不了解
inet addr:122.137.59.27 Bcast:172.17.255.255 Mask:255.255.0.0
inet6 addr: fe80::20c:29ff:fefa:3c8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14405 errors:0 dropped:0 overruns:0 frame:0
TX packets:9077 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5355258 (5.1 MB) TX bytes:4239604 (4.0 MB)
Interrupt:17 Base address:0x1400
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:2620 errors:0 dropped:0 overruns:0 frame:0
TX packets:2620 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:440136 (429.8 KB) TX bytes:440136 (429.8 KB)
理解每行的参数含义就可以了,不过我是不了解
#2
运行以下命令就可以了。
ifconfig eth0 down
ifconfig eth0 up
ifconfig eth0 down
ifconfig eth0 up
#3
楼上给的命令不是叫人家把网络给切断了吗?
#4
其实linux下很奇怪的,你重启网络服务,它的计数器是不会清零的,但windows下却可以.
难道非要改网卡的驱动才行?
难道非要改网卡的驱动才行?
#5
你先断开网卡,再填IP和DNS,再连
#6
如果网卡驱动是一个 kernel module, 你可用 rmmod 命令卸载该模块, 再用ifup 命令启动网卡。这将中断网络通讯。
如果驱动是编译进内核了, 那只有重启机器一个办法了。
如果驱动是编译进内核了, 那只有重启机器一个办法了。
#7
接口不重启计数器是不会清零的,这在交换机、路由器接口上也是一样的