eth0:reset adapter unexpe

Ubuntu主机拿不到IP地址,报错[2018.671109] e1000e 0000:00if.6 eth0:reset adapter unexpectedly,这个问题发生了好多次了,每次都搞不好,然后过一段时间就自己好了。现在就是拿不到IP,报错。而且是同时有好几台(一个机柜里4台PC)。都发生这样的情况求各位大神指教怎么解决,谢谢!
图片说明
图片说明

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
CentOS 输入命令ifconfig 无法显示eth0和IP地址

各位大神帮个忙 。输入命令ifconfig 无法显示eth0和IP地址 是怎么回事?

虚拟机安装了linux系统后可以上网,但是提示alias:eth0:not found

[root@localhost ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:55:8E:7A inet addr:192.168.83.129 Bcast:192.168.83.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:33 errors:0 dropped:0 overruns:0 frame:0 TX packets:24 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3527 (3.4 KiB) TX bytes:3586 (3.5 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1658 errors:0 dropped:0 overruns:0 frame:0 TX packets:1658 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2610896 (2.4 MiB) TX bytes:2610896 (2.4 MiB) [root@localhost ~]# /etc/modprobe.conf /etc/modprobe.conf: line 1: alias: eth0: not found /etc/modprobe.conf: line 1: alias: e1000: not found /etc/modprobe.conf: line 2: alias: scsi_hostadapter: not found /etc/modprobe.conf: line 2: alias: mptbase: not found /etc/modprobe.conf: line 3: alias: scsi_hostadapter1: not found /etc/modprobe.conf: line 3: alias: mptspi: not found /etc/modprobe.conf: line 4: alias: scsi_hostadapter2: not found /etc/modprobe.conf: line 4: alias: ata_piix: not found /etc/modprobe.conf: line 5: alias: scsi_hostadapter3: not found /etc/modprobe.conf: line 5: alias: ahci: not found /etc/modprobe.conf: line 6: alias: net-pf-10: not found /etc/modprobe.conf: line 6: alias: off: not found /etc/modprobe.conf: line 7: alias: ipv6: not found /etc/modprobe.conf: line 7: alias: off: not found /etc/modprobe.conf: line 8: options: command not found /etc/modprobe.conf: line 9: alias: snd-card-0: not found /etc/modprobe.conf: line 9: alias: snd-ens1371: not found /etc/modprobe.conf: line 10: options: command not found /etc/modprobe.conf: line 11: options: command not found /etc/modprobe.conf: line 12: syntax error near unexpected token `}' /etc/modprobe.conf: line 12: `remove snd-ens1371 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371' 我刚刚开始学习linux拜托大家帮忙看看,这是怎么个意思啊,是因为是虚拟机里安装的所以识别不了吗?

“获取接口标志时出错: 没有那个设备”,但是在检查时却存在

如图所示,请问为什么?![图片说明](https://img-ask.csdn.net/upload/201608/02/1470123008_976537.png)

centos的内置程序setup进行网络设备管理找不到网卡,但是电脑能上网。

![图片说明](https://img-ask.csdn.net/upload/201603/14/1457932990_660874.png) ![图片说明](https://img-ask.csdn.net/upload/201603/14/1457933053_795988.png) 能上网,但是没法用setup进行设置,怎么解决 而且查询/etc/sysconfig/network-scripts里没有ifcfg-eth0,只有ifcfg-lo。ifconfig可以查到eth0,但是/etc/rc.d/init.d/network restart没有看到eth0重启。只有环回接口的重启。 查看dmeg:dmesg|grep -i eth sky2 eth0: addr 00:23:8b:fd:8f:2f sky2 eth0: enabling interface ADDRCONF(NETDEV_UP): eth0: link is not ready sky2 eth0: disabling interface sky2 eth0: enabling interface ADDRCONF(NETDEV_UP): eth0: link is not ready [root@localhost net]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:23:8B:FD:8F:2F UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:16 但是无法使用setup,找不到/etc/sysconfig/network-script/ifcfg-eth0

linux vmware下的eth1和eth2配置不成功

# 对一台vmare上的Linux 进行了如下配置: auto eth0 iface eth0 inet static address 192.168.0.21 gateway 192.168.0.1 netmask 255.255.255.0 dns-nameservers 192.168.0.1 auto eth1 iface eth1 inet static address 192.168.1.21 gateway 192.168.0.1 netmask 255.255.255.0 dns-nameservers 192.168.0.1 auto eth2 iface eth2 inet manual up ip link set dev $IFACE up down ip link set dev $IFACE down # 然后输入命令ifconfig -a,得到: br-ex Link encap:Ethernet HWaddr 0a:45:d7:ce:c5:45 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) br-int Link encap:Ethernet HWaddr 8e:6c:da:0c:7c:4c BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) eth0 Link encap:Ethernet HWaddr 00:0c:29:0e:c1:66 inet addr:192.168.0.21 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe0e:c166/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:65846 errors:0 dropped:0 overruns:0 frame:0 TX packets:25384 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:40230877 (40.2 MB) TX bytes:2617693 (2.6 MB) 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:65536 Metric:1 RX packets:16546 errors:0 dropped:0 overruns:0 frame:0 TX packets:16546 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:830892 (830.8 KB) TX bytes:830892 (830.8 KB) ovs-system Link encap:Ethernet HWaddr 2e:19:95:31:93:8f BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) # 本机上只有两张虚拟网卡vmnet1和vmnet8,选择的网络连接方式是桥接,请问各路大牛,我该如何配置才可以使eth1和eth2生效,请尽量详细点,小弟是新手

在虚拟机上eth0 ping 主机,为什么在其他出接口(eth1)tcpdump还能看到报文?

主机信息: 连接特定的 DNS 后缀 . . . . . . . : 本地链接 IPv6 地址. . . . . . . . : fe80::998f:e20:1480:3aab%13 IPv4 地址 . . . . . . . . . . . . : 192.168.1.107 子网掩码 . . . . . . . . . . . . : 255.255.255.0 默认网关. . . . . . . . . . . . . : 192.168.1.1 虚拟机信息(路由和ip地址): eth0 Link encap:Ethernet HWaddr 00:0C:29:A0:55:AB inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fea0:55ab/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8313 errors:0 dropped:0 overruns:0 frame:0 TX packets:9646 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:612195 (597.8 KiB) TX bytes:2116557 (2.0 MiB) Interrupt:19 Base address:0x2024 eth1 Link encap:Ethernet HWaddr 00:0C:29:A0:55:B5 inet addr:192.168.1.109 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fea0:55b5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1443 errors:0 dropped:0 overruns:0 frame:0 TX packets:55 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:128176 (125.1 KiB) TX bytes:5634 (5.5 KiB) Interrupt:19 Base address:0x20a4 eth2 Link encap:Ethernet HWaddr 00:0C:29:A0:55:BF inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fea0:55bf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8109 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1117965 (1.0 MiB) TX bytes:1408 (1.3 KiB) Interrupt:16 Base address:0x2424 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:20 errors:0 dropped:0 overruns:0 frame:0 TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1584 (1.5 KiB) TX bytes:1584 (1.5 KiB) [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth2 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 在虚拟机上进行如下操作:(去ping主机的ip地址,用eth0) [root@localhost ~]# ping 192.168.1.107 -I eth0 PING 192.168.1.107 (192.168.1.107) from 192.168.1.108 eth0: 56(84) bytes of data. 64 bytes from 192.168.1.107: icmp_seq=1 ttl=64 time=0.492 ms 64 bytes from 192.168.1.107: icmp_seq=2 ttl=64 time=0.500 ms 64 bytes from 192.168.1.107: icmp_seq=3 ttl=64 time=1.13 ms 64 bytes from 192.168.1.107: icmp_seq=4 ttl=64 time=0.517 ms 64 bytes from 192.168.1.107: icmp_seq=5 ttl=64 time=0.381 ms 在虚拟机上抓包(抓eth2) [root@localhost ~]# tcpdump -i eth2 icmp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes 18:11:46.945393 IP 192.168.1.108 > 192.168.1.107: ICMP echo request, id 54537, seq 8, length 64 18:11:46.945438 IP 192.168.1.107 > 192.168.1.108: ICMP echo reply, id 54537, seq 8, length 64 18:11:47.947676 IP 192.168.1.108 > 192.168.1.107: ICMP echo request, id 54537, seq 9, length 64 竟然可以抓到。 我就很疑惑,虚拟机的网卡都是桥连的,感谢大牛为我解决疑惑。

为什么虚拟机每次重启都不加载ifcfg-eth0的配置

我已经在/etc/sysconfig/network-scripts/ 对 ifcfg-eth0进行了配置 ,但是每次启动虚拟机之后 执行ifconfig显示 ifcfg-eth0都没有IP地址 ,执行 service network restart也无效,必须执行 ifconfig eth0 192.168.56.66 netmask 255.255.255.0 才有效,但是重启虚拟机或者不重启虚拟机而执行 service network restart 后 ,ifcfg-eth0又没有了IP地址 ,现在百思不得其解!请各位大牛支招。 ifcfg-eth0 DEVICE="eth0" HWADDR="08:00:27:18:C1:5F" NM_CONTROLLED="yes" ONBOOT="yes" IPADDR=192.168.56.66 NETMASK=255.255.255.0 GATEWAY=192.168.56.1

rac配置中一个节点的网卡信息没有IP,掩码,网关信息。

[root@node1 ~]# service network restart Shutting down interface eth0: [ OK ] Shutting down interface eth1: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] Bringing up interface eth1: Determining IP information for eth1... done.//没有eth0的信息 [ OK ] #[root@node1 ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:E1:C1:B7 //没有ip,网关,掩码信息 inet6 addr: fe80::20c:29ff:fee1:c1b7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4025 (3.9 KiB) TX bytes:4211 (4.1 KiB) Interrupt:83 Base address:0x2400

我想问下关于centos日志内容意思。

May 14 20:04:54 localhost auditd[1540]: Audit daemon rotating log files May 14 20:53:06 localhost kernel: irq 63: nobody cared (try booting with the "irqpoll" option) May 14 20:53:06 localhost kernel: Pid: 0, comm: swapper Not tainted 2.6.32-431.el6.x86_64 #1 May 14 20:53:06 localhost kernel: Call Trace: May 14 20:53:06 localhost kernel: <IRQ> [<ffffffff810e8feb>] ? __report_bad_irq+0x2b/0xa0 May 14 20:53:06 localhost kernel: [<ffffffff810e91ec>] ? note_interrupt+0x18c/0x1d0 May 14 20:53:06 localhost kernel: [<ffffffff810e9835>] ? handle_edge_irq+0xf5/0x180 May 14 20:53:06 localhost kernel: [<ffffffff8100faf9>] ? handle_irq+0x49/0xa0 May 14 20:53:06 localhost kernel: [<ffffffff81530fdc>] ? do_IRQ+0x6c/0xf0 May 14 20:53:06 localhost kernel: [<ffffffff8100b9d3>] ? ret_from_intr+0x0/0x11 May 14 20:53:06 localhost kernel: <EOI> [<ffffffff812e09be>] ? intel_idle+0xde/0x170 May 14 20:53:06 localhost kernel: [<ffffffff812e09a1>] ? intel_idle+0xc1/0x170 May 14 20:53:06 localhost kernel: [<ffffffff814266f7>] ? cpuidle_idle_call+0xa7/0x140 May 14 20:53:06 localhost kernel: [<ffffffff81009fc6>] ? cpu_idle+0xb6/0x110 May 14 20:53:06 localhost kernel: [<ffffffff81520e13>] ? start_secondary+0x2ac/0x2ef May 14 20:53:06 localhost kernel: handlers: May 14 20:53:06 localhost kernel: [<ffffffffa01a4260>] (e1000_msix_other+0x0/0x1f0 [e1000e]) May 14 20:53:06 localhost kernel: Disabling IRQ #63 May 14 20:53:09 localhost kernel: ------------[ cut here ]------------ May 14 20:53:09 localhost kernel: WARNING: at net/sched/sch_generic.c:261 dev_watchdog+0x26b/0x280() (Not tainted) May 14 20:53:09 localhost kernel: Hardware name: X8DTL May 14 20:53:09 localhost kernel: NETDEV WATCHDOG: eth0 (e1000e): transmit queue 0 timed out May 14 20:53:09 localhost kernel: Modules linked in: cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 microcode iTCO_wdt iTCO_vendor_support sg serio_raw i2c_i801 i2c_core lpc_ich mfd_core e1000e ptp pps_core ioatdma dca i7core_edac edac_core shpchp ext4 jbd2 mbcache sd_mod crc_t10dif pata_acpi ata_generic ata_piix mpt2sas scsi_transport_sas raid_class dm_mirror dm_region_hash dm_log dm_mod [last unloaded: scsi_wait_scan] May 14 20:53:09 localhost kernel: Pid: 0, comm: swapper Not tainted 2.6.32-431.el6.x86_64 #1 May 14 20:53:09 localhost kernel: Call Trace: May 14 20:53:09 localhost kernel: <IRQ> [<ffffffff81071e27>] ? warn_slowpath_common+0x87/0xc0 May 14 20:53:09 localhost kernel: [<ffffffff81071f16>] ? warn_slowpath_fmt+0x46/0x50 May 14 20:53:09 localhost kernel: [<ffffffff8147b74b>] ? dev_watchdog+0x26b/0x280 May 14 20:53:09 localhost kernel: [<ffffffff81094fcd>] ? insert_work+0x6d/0xb0 May 14 20:53:09 localhost kernel: [<ffffffff8147b4e0>] ? dev_watchdog+0x0/0x280 May 14 20:53:09 localhost kernel: [<ffffffff81084b07>] ? run_timer_softirq+0x197/0x340 May 14 20:53:09 localhost kernel: [<ffffffff810ac8f5>] ? tick_dev_program_event+0x65/0xc0 May 14 20:53:09 localhost kernel: [<ffffffff8107a8e1>] ? __do_softirq+0xc1/0x1e0 May 14 20:53:09 localhost kernel: [<ffffffff810ac9ca>] ? tick_program_event+0x2a/0x30 May 14 20:53:09 localhost kernel: [<ffffffff8100c30c>] ? call_softirq+0x1c/0x30 May 14 20:53:09 localhost kernel: [<ffffffff8100fa75>] ? do_softirq+0x65/0xa0 May 14 20:53:09 localhost kernel: [<ffffffff8107a795>] ? irq_exit+0x85/0x90 May 14 20:53:09 localhost kernel: [<ffffffff815310aa>] ? smp_apic_timer_interrupt+0x4a/0x60 May 14 20:53:09 localhost kernel: [<ffffffff8100bb93>] ? apic_timer_interrupt+0x13/0x20 May 14 20:53:09 localhost kernel: <EOI> [<ffffffff812e09be>] ? intel_idle+0xde/0x170 May 14 20:53:09 localhost kernel: [<ffffffff812e09a1>] ? intel_idle+0xc1/0x170 May 14 20:53:09 localhost kernel: [<ffffffff814266f7>] ? cpuidle_idle_call+0xa7/0x140 May 14 20:53:09 localhost kernel: [<ffffffff81009fc6>] ? cpu_idle+0xb6/0x110 May 14 20:53:09 localhost kernel: [<ffffffff8150cbea>] ? rest_init+0x7a/0x80 May 14 20:53:09 localhost kernel: [<ffffffff81c26f8f>] ? start_kernel+0x424/0x430 May 14 20:53:09 localhost kernel: [<ffffffff81c2633a>] ? x86_64_start_reservations+0x125/0x129 May 14 20:53:09 localhost kernel: [<ffffffff81c26453>] ? x86_64_start_kernel+0x115/0x124 May 14 20:53:09 localhost kernel: ---[ end trace fad8560b1818d0ab ]--- May 14 20:53:09 localhost kernel: e1000e 0000:06:00.0: eth0: Reset adapter unexpectedly

Bridge模式下,怎么使用TC+Iptable进行流量控制

linux服务器A虚拟一个网桥br0,eth0(通外网),eth1接入网桥。 怎么用TC进行控制。 IPtable会给它贴标签,但是TC给eth0、eth1还是br0都没用 # eth0: ![eth0](https://img-ask.csdn.net/upload/201802/05/1517809531_334338.png) # eth1: ![eth1](https://img-ask.csdn.net/upload/201802/05/1517809565_441790.png) # br0 ![br0](https://img-ask.csdn.net/upload/201802/05/1517809586_340377.png)

iptable问题配置eth0和eth1问题

centOS6.5的系统,eth0是内网网卡,eth1时外网网卡,现在如何用iptables在外网网卡上加上防火墙,也就是eth1上加,eth0上不加防火墙

openwrt 貌似是ipv6的问题

系统启动后一直循环下面的信息 [ 99.490000] device wlan0 entered promiscuous mode [ 99.590000] br-lan: port 2(wlan0) entered forwarding state [ 99.600000] br-lan: port 2(wlan0) entered forwarding state [ 99.610000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 101.390000] device wlan0 left promiscuous mode [ 101.390000] br-lan: port 2(wlan0) entered disabled state [ 102.520000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 102.540000] device wlan0 entered promiscuous mode [ 102.590000] br-lan: port 2(wlan0) entered forwarding state [ 102.600000] br-lan: port 2(wlan0) entered forwarding state [ 102.610000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 104.600000] br-lan: port 2(wlan0) entered forwarding state [ 105.550000] device wlan0 left promiscuous mode [ 105.550000] br-lan: port 2(wlan0) entered disabled state [ 107.100000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 107.140000] device wlan0 entered promiscuous mode [ 107.240000] br-lan: port 2(wlan0) entered forwarding state [ 107.250000] br-lan: port 2(wlan0) entered forwarding state [ 107.260000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 109.120000] device wlan0 left promiscuous mode [ 109.120000] br-lan: port 2(wlan0) entered disabled state [ 111.260000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 111.310000] device wlan0 entered promiscuous mode [ 111.370000] br-lan: port 2(wlan0) entered forwarding state [ 111.380000] br-lan: port 2(wlan0) entered forwarding state [ 111.390000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 113.380000] br-lan: port 2(wlan0) entered forwarding state [ 116.500000] device wlan0 left promiscuous mode [ 116.510000] br-lan: port 2(wlan0) entered disabled state [ 118.090000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 118.120000] device wlan0 entered promiscuous mode [ 118.180000] br-lan: port 2(wlan0) entered forwarding state [ 118.190000] br-lan: port 2(wlan0) entered forwarding state [ 118.200000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 120.140000] device wlan0 left promiscuous mode [ 120.140000] br-lan: port 2(wlan0) entered disabled state [ 121.920000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 121.960000] device wlan0 entered promiscuous mode [ 122.000000] br-lan: port 2(wlan0) entered forwarding state [ 122.010000] br-lan: port 2(wlan0) entered forwarding state [ 122.030000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 124.010000] br-lan: port 2(wlan0) entered forwarding state [ 126.700000] device wlan0 left promiscuous mode [ 126.710000] br-lan: port 2(wlan0) entered disabled state [ 128.440000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 128.470000] device wlan0 entered promiscuous mode [ 128.510000] br-lan: port 2(wlan0) entered forwarding state [ 128.520000] br-lan: port 2(wlan0) entered forwarding state [ 128.530000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 130.360000] device wlan0 left promiscuous mode [ 130.360000] br-lan: port 2(wlan0) entered disabled state [ 131.770000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 131.790000] device wlan0 entered promiscuous mode

virtualbox虚拟机安装的fedora20, 开发板挂载NFS出错,哪位高手帮我看看好吗?

[root@localhost ~]# ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.89 netmask 255.255.255.0 broadcast 0.0.0.0 inet6 fe80::a00:27ff:fe26:bddd prefixlen 64 scopeid 0x20<link> ether 08:00:27:26:bd:dd txqueuelen 1000 (Ethernet) RX packets 8887 bytes 548956 (536.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 9271 bytes 11990079 (11.4 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 1009 bytes 101680 (99.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1009 bytes 101680 (99.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@localhost ~]# 这是linux系统的IP

KVM桥接网络 syslog中产生回环 不影响使用如何消除告警

查看/var/log/syslog发现大量回环警告 ``` br0: received packet on eth0 with own address as source address ``` 我安装了KVM虚拟机 eth0是物理网卡 br0是桥接网卡 他俩的mac地址是一样的 在调别的服务的时候发现系统日志里有大量的回环警告 但是现在主机网络和虚拟机网络都是正常的 没有广播风暴的那种情况 我感觉现在这种警告应该是正常的br0与eth0中转包产生的警告 我应该怎么做才能消除这些警告或者屏蔽这些警告 操作系统是debian系的

急问!hadoop环境配好了但是网络配置出问题了怎么办呢

本来是都配置好了的,突然有一天不好用了,ping不通,而且ResourceManager和NameNode启动不了怎么解决呢? [root@master ~]# service network restart Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface Auto_eth3: Error: Connection activation failed: Device not managed by NetworkManager or unavailable [FAILED] Bringing up interface eth1: Error: No suitable device found: no device found for connection 'System eth1'. [FAILED] [root@master ~]#

keepalived的vip怎么确定

keepalived的vip是怎么来的,我有两台服务器 server1: eth0:121.199.2.97(外) eth1:10.132.13.120(内) server2: eth0:115.29.234.228(外) eth1:10.161.148.192(内) 怎么确定vip,怎么做ha

使用指定的以太网ip发出http请求

<div class="post-text" itemprop="text"> <p>I have several public ip addresses on my machine. I want to specify which one to use for a request.</p> <p>I can do it using curl:</p> <pre><code>curl --interface 111.222.333.444 https://www.iplocation.net/find-ip-address | grep "Your IP address" </code></pre> <p>where <code>111.222.333.444</code> is one of my local ip addresses which I am using to make requests to the internet.</p> <p>How to do the same using <code>golang</code>?</p> <h1><a href="https://stackoverflow.com/questions/30552447/how-to-set-which-ip-to-use-for-a-http-request">This</a> method...</h1> <pre><code>package main import ( "bytes" "fmt" "github.com/PuerkitoBio/goquery" "io/ioutil" "net" "net/http" "os" "time" ) func main() { var localAddr = "111.222.333.444" localAddress, _ := net.ResolveTCPAddr("tcp", localAddr) // Create a transport like http.DefaultTransport, but with a specified localAddr transport := &amp;http.Transport{ Proxy: http.ProxyFromEnvironment, Dial: (&amp;net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, LocalAddr: localAddress, }).Dial, TLSHandshakeTimeout: 10 * time.Second, } client := &amp;http.Client{ Transport: transport, } response, err := client.Get("https://www.whatismyip.com/") if err != nil { fmt.Printf("%s", err) os.Exit(1) } else { defer response.Body.Close() contents, err := ioutil.ReadAll(response.Body) if err != nil { fmt.Printf("%s", err) os.Exit(1) } var contentsStr = string(contents) fmt.Printf("%s ", contentsStr) var doc = DocByHtmlString(contentsStr) doc.Find("div").Each(func(i int, s *goquery.Selection) { attr, exists := s.Attr("class") if exists { if attr == "ip" { fmt.Println(s.Text()) fmt.Println("expected ip is " + localAddr) } } }) } } func DocByHtmlString(html string) *goquery.Document { doc, err := goquery.NewDocumentFromReader(bytes.NewBufferString(html)) if err != nil { panic(err) } return doc } </code></pre> <p>... gives me always the following result:</p> <pre><code>Your IP Address Is: 555.666.777.888 // main IP address on my machine expected ip is 111.222.333.444 </code></pre> <h1><a href="https://stackoverflow.com/questions/27410764/dial-with-a-specific-address-interface-golang">Another</a> method</h1> <pre><code>package main import ( "fmt" "io/ioutil" "log" "net" ) func main() { ief, err := net.InterfaceByName("eth0") if err != nil { log.Fatal(err) } addrs, err := ief.Addrs() if err != nil { log.Fatal(err) } tcpAddr := &amp;net.TCPAddr{ IP: addrs[3].(*net.IPNet).IP, // Port: 8080, } d := net.Dialer{LocalAddr: tcpAddr} conn, err2 := d.Dial("tcp", "www.whatismyip.com:80") if err2 != nil { log.Fatal(err2) } fmt.Println(`conn.LocalAddr()`) fmt.Println(conn.LocalAddr()) fmt.Println(`conn.RemoteAddr()`) fmt.Println(conn.RemoteAddr()) defer conn.Close() bytesResult, err3 := ioutil.ReadAll(conn) if err3 != nil { log.Fatal(err3) } fmt.Println(`string(bytesResult)`) fmt.Println(string(bytesResult)) } </code></pre> <p>gives output</p> <pre><code>conn.LocalAddr() 111.222.333.213:37036 conn.RemoteAddr() 141.101.120.15:80 // 15 seconds pause string(bytesResult) // empty string </code></pre> <h1>ifcongif</h1> <p>Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-63-generic x86_64)</p> <pre><code>$ ifconfig eth0 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.208 Bcast:111.222.333.255 Mask:255.255.255.0 inet6 addr: de90::216:3cff:fe56:698c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:942000 errors:0 dropped:0 overruns:0 frame:0 TX packets:336708 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:133860794 (133.8 MB) TX bytes:84577381 (84.5 MB) eth0:0 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.209 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:1 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.212 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:2 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.213 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:3 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.216 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:4 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.217 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:5 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.220 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:6 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.221 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:7 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.224 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:8 Link encap:Ethernet HWaddr 00:18:3c:96:69:8c inet addr:111.222.333.225 Bcast:111.222.333.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) </code></pre> </div>

开发板执行ifconfig命令后只有lo,没有eth0

以前的开发板运行正常,新板子换了一个网卡芯片,把内核烧进去后 执行ifconfig命令后只有lo,没有eth0,是因为没有网卡驱动或者驱动不对, 还是因为其他的原因,在此求教大家了。

linux ring buffer设置问题

最近服务器存在掉包的现象,在网上是修改ring buffer的大小就可以避免丢包的现象 修改命令:ethtool -g eth0 rx 2047 Ring parameters for eth0: Pre-set maximums: RX: 2047 RX Mini: 0 RX Jumbo: 0 TX: 511 Current hardware settings: RX: 2047 RX Mini: 0 RX Jumbo: 0 TX: 511 修改了后,服务器再没有掉包现象了。 对于这个我几个问题: 1.为什么有的服务器rx ring buffer初始值不同(200或246、247)? 2.设置这个rx ring buffer过大会不会导致服务器有什么影响? 求各位大神解答

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

搜狗输入法也在挑战国人的智商!

故事总是一个接着一个到来...上周写完《鲁大师已经彻底沦为一款垃圾流氓软件!》这篇文章之后,鲁大师的市场工作人员就找到了我,希望把这篇文章删除掉。经过一番沟通我先把这篇文章从公号中删除了...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图2020年最新版(进大厂必备)

正确选择比瞎努力更重要!

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

都前后端分离了,咱就别做页面跳转了!统统 JSON 交互

文章目录1. 无状态登录1.1 什么是有状态1.2 什么是无状态1.3 如何实现无状态1.4 各自优缺点2. 登录交互2.1 前后端分离的数据交互2.2 登录成功2.3 登录失败3. 未认证处理方案4. 注销登录 这是本系列的第四篇,有小伙伴找不到之前文章,松哥给大家列一个索引出来: 挖一个大坑,Spring Security 开搞! 松哥手把手带你入门 Spring Security,别再问密...

字节跳动面试官竟然问了我JDBC?

轻松等回家通知

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

阿里面试官让我用Zk(Zookeeper)实现分布式锁

他可能没想到,我当场手写出来了

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

立即提问
相关内容推荐