由买买提看人间百态

topics

全部话题 - 话题: eth1
1 (共1页)
w*s
发帖数: 7227
1
hi everyone,
we designed embedded board, running basic linux,
no fancy stuff (e.g. network manager).
it has 2 ethernet ports: eth0, eth1
1. plugin cable to eth1, restart board.
it comes back, eth1 is alive, i can ping it.
2. move the cable from eth1 to eth0,
run "udhcpc --reties 4 -n -q -i eth0"
ifconfig shows eth0 now has a valid ip addr, also it's UP.
3. but i cannot ping eth0
4. if i start with eth0, can ping eth0.
move to eth1, then cannot ping eth1.
i'm not familiar with network... 阅读全帖
w*s
发帖数: 7227
2
so eth0 and eth1 ate up after reboot,
i unplug eth1,
from host i can still ping eth1.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.50.180.0 * 255.255.252.0 U 0 0 0 eth0
10.50.180.0 * 255.255.252.0 U 0 0 0 eth1
default 10.50.183.254 0.0.0.0 UG 0 0 0 eth0
is this legal ?
c*a
发帖数: 806
3
how come eth1 is still up (U)?
w*s
发帖数: 7227
4
administratively i didn't do "ifconfig eth1 down", so it's still "up" even
physical layer is down.
W*****x
发帖数: 684
5
来自主题: Linux版 - Enjoy! 分享一个自用的conkyrc
background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color lightgray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 20
gap_y 40
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_s... 阅读全帖
l****8
发帖数: 77
6
来自主题: Linux版 - [求助]ICS无法访问citicards.com
我用一台ubuntu8.04双网卡(eth0, eth1)作gateway(用firestarter设置的ICS),另
一台vista通过它上网。
vista----------->eth1, eth0------------>internet
现在有一个问题,当eth0,eth1都开时,两台机器都无法访问citicards.com这个网站(
只有这个网站无法访问!)。必须ifdown eth1后才能用ubuntu访问。请问为什么会这
样?怎样查找原因?
没开ICS之前访问citicards.com一切正常。
v*****r
发帖数: 1119
7
OS: RedHat 5.3服务器上装了两个网卡:eth0 and eth1. eth0 是连internet的
public interface, eth1 是 private interface (for cluster nodes
interconnections). 按要求防火墙需要打开 (iptables), 在 RedHat 4 (or under 4
) 下面,通常我都是打开防火墙(enable iptables),同时设 eth1 为 "Trusted Device
“ to bypass firewall. (在 Security Level and Firewall 窗口里,以上设置可一
步完成。)发现在 RedHat 5 里的 Security Level and Firewall 窗口下,没有了 “
Trusted Devices" 的选项,google 了一下,也没找到答案。我的问题是:1. RedHat
5 里,如何设置 eth1 为 “Trusted Device" to bypass iptables firewall.2. 如果
GUI window
w*s
发帖数: 7227
8
ubuntu, no NetworkManager,
anyone knows how to get rid of one of the default gateway ?
thx !
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.50.180.0 * 255.255.252.0 U 0 0 0 eth0
10.50.180.0 * 255.255.252.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 1000 0 0 eth0
default 10.50.183.254 0.0.0.0 UG 100 0 0 eth1
default 10.50.183.254 0.0.0.0 UG 100 0 0 eth0
my /etc/network/interfaces is simple
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto et... 阅读全帖
b***i
发帖数: 3043
9
来自主题: Programming版 - Linux网络编程的疑难问题
Arm Linux, Xilinx Zynq
两个网卡,eth0, eth1,eth0这边接Win 7, eth1这边接Win 8
我的程序需要监听eth0 port A和eth1 port B,如果有connect的需要,就同意,并且
开始通信,从来不主动跟外部通信。两边需要并行通讯。Win7 和Win8这两个网络是不
通的,也不需要通过ARM Linux来接通。
问,eth0和eth1是否两个都可以一样IP地址?Win7, Win8是否可以一样的IP地址?假定
以太网卡地址完全不同。
好比,我在朝鲜和韩国边界有个店铺,里面两个电话,一个只能通朝鲜,一个只能通韩
国,假定朝鲜和韩国互不通话,也不能通过我的店铺通话。我的店铺只接电话,不主动
打电话。这时,我的朝鲜号码和韩国号码可以相同,不产生问题。 店铺里可以两个人
同时接电话。
A******y
发帖数: 14
10
重装了系统(Ubuntu),检查了IP information和cable connection, 但是网络还是连不
上,
sudo /etc/init.d/networking restart 出现下列信息:
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
eth1: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth1.
现在怀疑是ethernet interface坏了,请问应该怎么检查确认?
f**c
发帖数: 791
11
来自主题: Linux版 - 双网卡的配置问题!!
fc10
eth0 固定IP, 上网用
eth1 连一router (DHCP),想和别的电脑作局域网传data,不需要上网
用network service 管理。 发现要是先activate eth0, then eth1, 主机上不了网。
先 activate eth1 then eth0,则上网没问题。还没有试局域网通不通。
请问需要什么别的设置吗??
太感谢拉
Z**0
发帖数: 1119
12
来自主题: Linux版 - 双网卡的配置问题!!
你的问题,主要在于eth1用dhcp,eth1启动的时候,会用从dhcp得到的gateway更新
default gateway。这个就是为什么,eth1在eth0后边启动,你就不可以上网了。
好像fc用的是dhclient,这个好像没有命令选项,用自己指定的gateway。两个方法:
1。在/etc/rc.local里边加上,修改default gw的命令:route add default aa.bb.cc
.dd (aa.bb.cc.dd是你的gateway的IP)。
或者
2。让dhcp的eth,先启动,然后固定IP的eth后启动。
l********0
发帖数: 283
13
来自主题: Linux版 - 求教网卡设置问题
有一台服务器A
操作系统采用CentOS 5.3,双网卡,一个网卡连接外网,一个网卡连接本地switch
这个switch没有外网连接,只是连接了A和另外12台服务器节点(想配置为cluster系统)
eth0:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=34:13:8B:F5:D7:26
ONBOOT=yes
TYPE=Ethernet
eth1:
DEVICE=eth1
BOOTPROTO=none
HWADDR=03:18:5B:F8:D3:07
ONBOOT=no
NETMASK=255.255.254.0
IPADDR=192.168.1.13
GATEWAY=192.168.1.254
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
每个网卡单独启用的使用,都分别是好的
但是如果同时启动的话,eth0就失去作用,就是说不能连接外网,但是eth1可以用,可
以连接那12台节点
我想让他们同时起作用,可以连接外网,又可以连接另外12台节点
该如何配置?
这个问题已经困扰我好几天了,期待大家的帮助,谢谢
l********0
发帖数: 283
14
来自主题: Linux版 - 求教网卡设置问题
问题看起来已经解决,
解决方法是,修改eth1的配置:BOOTPROTO=static;去掉GATEWAY=192.168.1.254
现在通过服务器A既可以上外网,又可以连接其他12台服务器

输出结果是:
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.13
128.169.4.0/23 dev eth0 proto kernel scope link src 128.169.4.74
169.254.0.0/16 dev eth1 scope link
default via 128.169.4.1 dev eth0
请帮我看看,还有什么错误吗?
非常感谢!
w*s
发帖数: 7227
15
hi i have eth0 and eth1,both static ip.
eth0 is not plugged in initially.
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 10.50.183.254 0.0.0.0 UG 0 0 0 eth1
10.50.180.0 0.0.0.0 255.255.252.0 U 0 0 0 eth1
then i plugin eth0,
#route add default gw 10.50.183.254 eth0
#route: SIOCADDRT: Network is unreachable
how should i fix it ?
thanks !
b***i
发帖数: 3043
16
来自主题: Programming版 - 我是否需要Move(C++11)?
程序运行中途,要修改某个IP地址,或者port
比如,系统有三个以太网:eth0, eth1, wifi, 只有eth0的地址和端口是固定的,其
他的由应用程序通过和客户的交流来设定。如果客户要改,这个变量就要重新赋值。
更改就发生在handle_read里面,例子:如果包的内容是: set eth1 ip=...... port =
....
那么这里就呼叫对应的函数来关掉相应的eth1的io_service,然后用新的IP地址和端口
重新生成新的。
m********3
发帖数: 3280
17
我叫夏晨曦,是中国一家运营商(ISP)的核心网工程师,在两年的职业生涯中,多次
与网警打过交道,了解他们的运作方式。在2012年10月15日的下午2点,上海市公安局
闸北分局的网警来到我们公司,要求在他们管辖范围内的一个机房(万荣一路工业园)
安装监控服务器,我被领导安排配合他们做技术支持。实际上我们公司的所有机房都有
公安的监控服务器。
我们公司的网络拓扑(部分)大致如下:以万荣路机房为例
华为9306 三层交换机 (万荣路机房)
|
|
GW6700 OLT (万荣路机房)
|
|
GT810onu (用户家)
GW6700
GW6700 OLT(optical line terminal)共有4个上联口,第一上联口接入华为9306三层
交换机,第二个上联口接网警的监控服务器,我所提供的技术支持就是把第二个接口设
置为镜像端口,然后关联到第一个接口。GW6700调试的命令如下:
wanron... 阅读全帖
n****g
发帖数: 14743
18
网络工程师网夏晨曦爆料警如何监控P民zz
http://canyu.org/n83022c6.aspx
我叫夏晨曦,是中国一家运营商(ISP)的核心网工程师,在两年的职业生涯中,多次
与网警打过交道,了解他们的运作方式。在2012年10月15日的下午2点,上海市公安局
闸北分局的网警来到我们公司,要求在他们管辖范围内的一个机房(万荣一路工业园)
安装监控服务器,我被领导安排配合他们做技术支持。实际上我们公司的所有机房都有
公安的监控服务器。
我们公司的网络拓扑(部分)大致如下:以万荣路机房为例。
华为9306 三层交换机 (万荣路机房)
|
|
GW6700 OLT (万荣路机房)
|
|
GT810onu (用户家)
GW6700
GW6700 OLT(optical line terminal)共有4个上联口,第一上联口接入华为9306三层
交换机,第二个上联口接网警的监控服务器,我所提供的技术支持就是把第二个接口设
置为镜像端口,然后关联到第一个接口。GW67... 阅读全帖
p**i
发帖数: 688
19
我对tomato不熟, 如果不行就换DD-WRT吧, 文档会全一些
make sure your kernel includes traffic control, and try the following
command
tc class show dev eth1 (assuming eth1 is your WAN interface)
c********n
发帖数: 1577
20
来自主题: Hardware版 - 有pfsense高手么,求设置vpn帮忙
打算利用起来我买的vpn包年
目前pfsense路由4个网口,eth0-wan
打算eth1-isp
eth2 不同的subnet-VPN,
这样接到eth2的AP就可以提供VPN,而eth1的都是走ISP
已经设置好了vpn,全局下是可以用的
接下来不知道怎么弄了,谁能教教我
m******j
发帖数: 326
21
来自主题: Linux版 - 请问网络高手
我现在有一个程序,两个网卡interface
我现在想让这个程序的traffic仅仅从指定的网卡通过,如何作?
也就是说我有程序 XXX
两个网卡 eth0 eth1,我想让所有xxx的都从eth1走,应当如何作?谢谢
b**r
发帖数: 352
22
来自主题: Linux版 - 网络设置问题
ubuntu server 9.04
两个网口
#more /etc/nework/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 173.11.129.99
netmask 255.255.255.240
gateway 173.11.129.110
问题是可以ping 192.168.1.*, 但是ping 173.11.129.110时Destination Host
Unreachable
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
173.11.129.96 0.0.0.0 255.255.25
f**c
发帖数: 791
23
来自主题: Linux版 - 双网卡的配置问题!!
多谢,能详细说说吗?
网上说在/etc/sysconfig/network里面加GATEWAY=...但是restart network service后
加的东西就没有了,只剩下:
NETWORKING=yes
HOSTNAME=***
/etc/sysconfig下有两个目录:networking, network-scripts
其中ifcfg-eth0,和ifcfg-eth1分别为:
DEVICE=eth0
BOOTPROTO=none
HWADDR=***
IPV6INIT=no
IPV6_AUTOCONF=no
ONBOOT=yes
DNS1=***
DNS2=***
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
NM_CONTROLLED=no
NETMASK=255.255.255.0
IPADDR=***
GATEWAY=***
TYPE=Ethernet
DEVICE=eth1
HWADDR=***
BOOTPROTO=dhcp
ONBOOT=no
USERCTL=no
PEERDNS=yes
IPV6INIT=no
NM_CONTROL
w*s
发帖数: 7227
24
this is ubuntu, kernel 2.6.32
===== my /etc/network/interfaces =====
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 4.5.182.182
netmask 255.255.252.0
gateway 4.50.183.254
dns-nameservers 4.2.8.9
After reboot, my /etc/resolv.comf is still like
nameserver 10.38.78.5
nameserver 10.38.58.5
domain thiscompany.ad
search thiscompany.ad
i'm not seeing my 4.2.8.9, why ? :(
w*s
发帖数: 7227
25
this is embedded system, so i can modify the kernel.
the problem is a mess and sometimes i cannot ask the right question.
The board has 2 ethernet interfaces, both online to keep the network up all
the time. It seemed to be ok until i found the following problem.
Q: if i have 2 NICs in linux, without networkManager, both in DHCP.
when i boot up, it has 2 default gateways, sth. like
default 10.50.188.254 eth0
default 10.50.188.254 eth1
so the only difference is eth0 or eth1.
if you do "ping www.y... 阅读全帖
j*a
发帖数: 14423
26
root@:~# ethtool eth0
Settings for eth0:
Supported ports: [ ]
Supported link modes:
Supports auto-negotiation: No
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 10000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
MDI-X: Unknown
Link detected: no
root@:~# ethtool eth1
Settings for eth1... 阅读全帖
a9
发帖数: 21638
27
eth0有ip嘛。

eth1
eth1
y*******g
发帖数: 33
28
现有两个multicast streams, 想让其中一个走 eth0 另外一个走 eth1,请问如何在
LINUX中设置网络路由
例如 239.1.1.1 -> eth0
239.1.1.2 -> eth1
Many Thanks.
b***i
发帖数: 3043
29
来自主题: Programming版 - 我是否需要Move(C++11)?
有一个类,TCPServer{
public: TCPServer(asio::io_service& io_service, const tcp::endpoint& listen_
endpoint){...}
private:
asio::io_service& io_service_;
asio::ip::tcp::acceptor acceptor_;
TCPListener listener_;
};
这个类是boost的一个例子。我的代码需要三个变量,放在TCPServerManager里面,为
简单起见,我定义三个static变量。
TCPServerManager{
static TCPServer eth0, eth1, wifi;
static void start(){...}
};
那么,在start里面,我根据boost的例子,用TCPServer s(io_service, listen_
endpoint);定义了一个变量。怎么把这个变量变成我的eth0,eth1, wifi呢?
在定义eth0的那个地方,需要的listen_endpoint还没有好,就... 阅读全帖
l*******s
发帖数: 7316
30
照这篇说的用eth1行吗?
https://wiki.openwrt.org/doc/howto/usb.tethering
Use the new usb0 (or for some cases eth1) network device as WAN connection
and set the protocol to DHCP client mode.
下面这些设置是ssh登陆后直接输命令吗?
uci del network.wan
uci set network.wan=interface
uci set network.wan.ifname=usb0
uci set network.wan.proto=dhcp
uci commit network
b*********d
发帖数: 2105
31
【 以下文字转载自 Linux 讨论区 】
发信人: brotherband (亲亲我的招妹~), 信区: Linux
标 题: 如何连接mac和linux?(用crosswire cable)
发信站: BBS 未名空间站 (Wed Oct 26 11:14:05 2011, 美东)
搞了一上午,也没搞定。google了半天,好像没人说这种情况。问问这里的大牛们,双
黄包答谢!
我有linux pc一台,macbook笔记本一个,买了crosswire cable, 插上之后不知道如何
设置才能让互相能看见对方?
我在linux下面点system -> Administration -> network, 然后自己设了个network,
eth1, ip=192.168.1.7, submask=255.255.255.0, 其他都留空了,但是ping 不到我的
macbook. 我的macbook本身是用wireless连到家里router上的,我看ip是192.168.1.
100
现在不知道怎么办了,求教!谢谢!
z**b
发帖数: 293
32
来自主题: Database版 - client无法连接虚拟机数据库
参数如下:
虚拟机:VMware workstation
eth1 IP:192.168.213.135
hostname: localhost
Listener 启动正常
service_name=orcl
虚拟机内执行:
[oracle@localhost]$sqlplus hr/[email protected]/orcl
连接成功。
windows CMD
ping 192.168.213.135 正常
ping localhost 不通
输入:
c:\>sqlplus hr/[email protected]/orcl
结果无法连接。这是为什么?
s****a
发帖数: 6521
33
来自主题: Database版 - Mysql无法远程连接,求助
MySQL在服务器上,服务器的两个ip分别为
eth1 192.168.0.12,这个可以用局域网其他 192...开头的地方 ssh;
eth0 10.1.1.1, 这个无法从其它地方ssh,应该是连接cluster其他node的网卡?
现在的问题是,远程无法连接MySQL
在服务器本机,用 mysql -h 10.1.1.1 可以连接; -h localhost 可以连接; -h 127
.0.0.1也可以连接。但就是 -h 192.168.0.12无法连接。
请问问题出在哪? 怎么解决?
操作系统是 CentOS.
多谢!
w*******e
发帖数: 285
34
不好意思,我不幸把我们家的router brick了。我的先去ddwrt照着我的型号下载了
belkin f5d7230-4 v2000的micro和micro-plus版本的firmware,开始我只用tftp
flash了micro版本的firmware,一切顺利只是有线网不支持,然后我就参照链接
http://www.dd-wrt.com/wiki/index.php/Belkin_F5D7230-4_v2xxx_and_Lower用telnet运行了如下的script
nvram set lan_ifnames="vlan0 eth1"
nvram set port0vlans=1
nvram set remote_management=1
nvram set lan_ifname="br0"
nvram set wan_ifname=eth0
nvram set wan_ifnames=eth0
nvram commit
reboot
结果有线网还是不能dhcp,就算手动设置ip也不行,只能通过无线网连上router,也无
法从cable modem分配到地址。后来我看mic
g**e
发帖数: 6127
35
来自主题: Hardware版 - 包子求助: e3000 repeater bridge设置
做过了,没用。这个join并不是真正的加入了wireless,只是自动帮你填上SSID啥的,
跟手动填一样的效果
还是感谢
ssh进去之后显示的IP
root@DD-WRT:~# ifconfig
br0 Link encap:Ethernet HWaddr 68:7F:74:AC:BE:90
inet addr:192.168.1.222 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:6005 errors:0 dropped:0 overruns:0 frame:0
TX packets:8828 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:455790 (445.1 K... 阅读全帖
a****x
发帖数: 231
36
改一个文件,就可以通过router上网了。我用Comcast DHCP。DSL可能稍微麻烦一
些。
telnet 1921.168.1.1
进去后修改密码:
passwd
然后修改文件network
vi /etc/config/network
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' 'dhcp'<====
option 'macaddr' 'xx:xx:xx:xx:xx:x'<====Comcast 注册macaddr
j*a
发帖数: 14423
37
来自主题: Hardware版 - 提个醒,地沟油用vlan的
我只看到eth0和eth1
v*****x
发帖数: 44
38
【 以下文字转载自 Linux 讨论区 】
【 原文由 victorx 所发表 】
就是FreeS/Wan。 俺设置好后可以用ipsec setup --start和ipsec auto --up vpn启动
一个vpn连接,但在一端子网里就是ping不通另一端的host,KLIP的log如下:
Jun 26 12:35:33 penp2 kernel: klips_debug:ipsec_tunnel_hard_header: skb->de
v=ipsec0 dev=ipsec0.
Jun 26 12:35:33 penp2 kernel: klips_debug:ipsec_tunnel_hard_header: Revector
ed 0x00000000->0xdfc38d48 len=60 type
=2048 dev=ipsec0->eth1 dev_addr=00:06:5b:5d:7f:65 ip=c0a80014->c0a80116
Jun 26 12:35:33 penp2 kernel: klips_debug:ipsec_tunnel_start_xmit:
Z**0
发帖数: 1119
39
来自主题: Linux版 - 网络设置问题
173.11.129.96 0.0.0.0 255.255.255.240 U 0 0 0 eth1
^
|
这个怎么可能呢?
D*****r
发帖数: 175
40
ubuntu 9.04,笔记本放在那里半个小时,回来发现屏幕灰了。晃鼠标,摁电源键都没
有反应。只好按电源重启,之后就上不了网了。无线网图标(就是在音量旁边那个)的
wired network, disconnected和wireless networks都变成灰色的,不能点。然后查了
iwconf:
lo和eth0都是no wireless extensions, eth1是IEEE802.11,not-associated
这个是什么问题?硬件还是软件的,大侠帮忙看看。谢谢!!
s****n
发帖数: 786
41
struct ifreq ifreq;
int sock;
if((sock=socket(AF_INET,SOCK_STREAM,0))<0)
{
perror("socket");
return -1;
}
strcpy(ifreq.ifr_name,"eth1"); //change your interface here
if(ioctl(sock,SIOCGIFHWADDR,&ifreq)<0) //get your network address here
{
perror("ioctl");
return -1;
}
T**S
发帖数: 319
42
the problem is you don't know which interface the packet will use to send
out. you may have eth0, eth1, eth0:10, eth2:1, etc., in your system, and it
is the rotuting table decide the correct one.
also getsockname() or getpeername() doesn't apply either.
r****t
发帖数: 10904
43
来自主题: Linux版 - help: iptables 问题
应该是个常见问题了,一直不知道咋办:
A acts as the gateway, eth0 internal, eth1 external.
B is a web server behind A.
能做 DNAT 让 internet 访问到 B, 但是和 B 在同一个子网的机器却没法
直接用 A 的 IP 访问 B, 因为一些原因不想改内部 DNS, 我现在用
iptables -t nat -A PREROUTING -s $INTERNAL_NET -i eth0 -d IP_A -j DNAT --to-
dest IP_B
iptables -t nat -A POSTROUTING -s IP_B -o eth0 -d $INTERNAL_NET -j SNAT --to
-source IP_A
不能工作,请问我该怎么办?
b*********d
发帖数: 2105
44
搞了一上午,也没搞定。google了半天,好像没人说这种情况。问问这里的大牛们,双
黄包答谢!
我有linux pc一台,macbook笔记本一个,买了crosswire cable, 插上之后不知道如何
设置才能让互相能看见对方?
我在linux下面点system -> Administration -> network, 然后自己设了个network,
eth1, ip=192.168.1.7, submask=255.255.255.0, 其他都留空了,但是ping 不到我的
macbook. 我的macbook本身是用wireless连到家里router上的,我看ip是192.168.1.
100
现在不知道怎么办了,求教!谢谢!
w*s
发帖数: 7227
45
the thing is my code is for embedded board,
so don't want to install packages other than pure kernel if possible.
since no GUI, i have to use command line network manager, not sure if
it's
good.
then how to get GUID for net device from command line ?
how to generate networkManager config file for eth0, eth1 ?
i don't know.
on the other hand, if i can do callback from driver code to change
routing
tables, then i'm all set, praying ...

less
a9
发帖数: 21638
46
是不是arp的关系?在ping的机器上arp一下试试看?

these
w*s
发帖数: 7227
47
it does look like arp issue.
but in this embedded arm board,
we use busybox for arp,
if i do "arp -d ipaddr -i eth0", the entry is still there.
if i do "ifconfig eth0 down", the entry will be gone.
but this is too heavy.
any suggestions why "arp -d" is not working ?
is this the bug in the ethernet driver ?
(btw, i tried to move cable in linux desktop, the arp entry
is gone as soon as i move the cable.)
w*s
发帖数: 7227
48
actually should the network driver clean up the arp table when calbe is
removed, or it's someone else's job ?
z**r
发帖数: 17771
49
multicast routing和unicast routing差不多正好相反。根据你描述,你这台server是
multicast source,那么你能控制的不是如何从source到receiver,而是相反。也就是
说,你得想办法让239.1.1.1里的receivers通过eht0访问source,239.1.1.2里的
receivers通过eth1访问server.
s********0
发帖数: 6
50
一台PC,长期使用时不插网线,目前遇到的问题是开机时未插网线则eth0不enable,
ifconfig返回的是eth1
lmhostid返回空值。
请问如果能够在不插网线的情况下,仍然能够在开机时启动eth0,并使用指定的MAC
address?
1 (共1页)