Nat problem

由 lordbyorn 在 08-04-2003 19:13 发表:

Nat problem

> > 源码: >
> * * * >
>
> > > OpenLab:/usr/bin # ifconfig
> > > eth0 Link encap:Ethernet HWaddr 52:54:AB:57:0C:28
> > > inet addr:192.168.32.57 Bcast:192.168.33.255 Mask:255.255.254.0
> > > inet6 addr: fe80::5054:abff:fe57:c28/64 Scope:Link
> > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > > RX packets:4211 errors:0 dropped:0 overruns:0 frame:0
> > > TX packets:4500 errors:0 dropped:0 overruns:0 carrier:0
> > > collisions:43 txqueuelen:100
> > > RX bytes:757887 (740.1 Kb) TX bytes:368074 (359.4 Kb)
> > > Interrupt:5 Base address:0xc800
> > >
> > > eth0:0 Link encap:Ethernet HWaddr 52:54:AB:57:0C:28
> > > inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
> > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > > Interrupt:5 Base address:0xc800
> > >
> > > 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:1285 errors:0 dropped:0 overruns:0 frame:0
> > > TX packets:1285 errors:0 dropped:0 overruns:0 carrier:0
> > > collisions:0 txqueuelen:0
> > > RX bytes:141844 (138.5 Kb) TX bytes:141844 (138.5 Kb)
> > >
> > >
> > >
> > >
> > > OpenLab:/usr/bin # iptables -t nat -A POSTROUTING -o eth0:0 -s 192.168.1.0/24 -j SNAT --to 192.168.32.57
> > > Warning: wierd character in interface `eth0:0' (No aliases, :, ! or *).
> > >
> > >
>
> * * *

Wh

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus