Chinaunix首页 | 论坛 | 博客
  • 博客访问: 133680
  • 博文数量: 29
  • 博客积分: 1395
  • 博客等级: 中尉
  • 技术积分: 340
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-14 10:05
文章分类

全部博文(29)

文章存档

2010年(8)

2009年(5)

2008年(2)

2007年(12)

2006年(2)

我的朋友

分类: LINUX

2006-11-28 16:08:58

adm5120的网口问题:
默认情况下所有网口是在一个vlan的,看看她的cpu手册是这么说的,并且数据会互相转发:
For example,port0 is the WAN port. The others are the LAN ports, then the WAN ports are set as VLAN1 and the
others set as VLAN2. The different MAC addresses for the VLAN1/2 are programmed into the address table. Then
if the LAN ports receive packets with VLAN2 addresses, the packets will be forward to the CPU via DMA. After
processing the packets (like NAT), the CPU can forward the packets to VLAN1.


貌似如果你在eth0配个地址,接在eth1的机器也能ping通他。


如果兄弟姐妹需要改端口设置责需要改一下内核的相关驱动,把各个网口分别独立起来就可以了。可以进行许多组合。具体可以看看她的代码中的定义和cpu手册参考。不是很罗嗦。
阅读(1484) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~