LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 571|回复: 2

Nat problem

[复制链接]
发表于 2003-8-4 19:13:38 | 显示全部楼层 |阅读模式
  1. OpenLab:/usr/bin # ifconfig
  2. eth0      Link encap:Ethernet  HWaddr 52:54:AB:57:0C:28
  3.           inet addr:192.168.32.57  Bcast:192.168.33.255  Mask:255.255.254.0
  4.           inet6 addr: fe80::5054:abff:fe57:c28/64 Scope:Link
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:4211 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:4500 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:43 txqueuelen:100
  9.           RX bytes:757887 (740.1 Kb)  TX bytes:368074 (359.4 Kb)
  10.           Interrupt:5 Base address:0xc800
  11. eth0:0    Link encap:Ethernet  HWaddr 52:54:AB:57:0C:28
  12.           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
  13.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  14.           Interrupt:5 Base address:0xc800
  15. lo        Link encap:Local Loopback
  16.           inet addr:127.0.0.1  Mask:255.0.0.0
  17.           inet6 addr: ::1/128 Scope:Host
  18.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  19.           RX packets:1285 errors:0 dropped:0 overruns:0 frame:0
  20.           TX packets:1285 errors:0 dropped:0 overruns:0 carrier:0
  21.           collisions:0 txqueuelen:0
  22.           RX bytes:141844 (138.5 Kb)  TX bytes:141844 (138.5 Kb)
  23. OpenLab:/usr/bin #  iptables -t nat -A POSTROUTING -o eth0:0 -s 192.168.1.0/24 -j SNAT --to 192.168.32.57
  24. Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).
复制代码

Why cann't use eth0:0?
发表于 2003-8-4 22:25:03 | 显示全部楼层

because eth0:0 is just an alias

And it's using the same physical link with eth0 and eth0:*
 楼主| 发表于 2003-8-4 22:46:37 | 显示全部楼层
They are not two interface??
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表