使用您当前显示的设置:
Use the settings you currently display & #xff1a;
>你有两面:
& gt; you have two sides & #xff1a;
> eth1方面(10.10.6.10接口,10.10.6.0/24 lan)
& gt; eth1x (10.10.6.10 interface, 10.10.6.0/24lan)
> eth0方面(10.10.5.10接口,10.10.5.0/24 lan)
& gt; eth0x (10.10.5.10.10 interface, 10.10.5.0/24lan)
>您在eth0端定义了该机器的默认网关(默认gw ip:10.10.5.254)
& gt; you defined the machine's default gateway at end eth0 (default gw ip& #xff1a; 10.10.5.254)
>因此
& gt; therefore
>在eth1方面:
& gt; in eth1 & #xff1a;
> [必备] 10.10.6.0/24中的任何机器都应该能够与10.10.6.10(以及彼此之间)通信(我假设没有防火墙问题)
& gt; [Necessary] 10.10.6.0/24 any machine should be able to communicate with 10.10.6.10 (and between) (I assume there is no firewall problem)
> [必备]此外:10.10.6.0/24中的任何机器已将其默认网关定义为“10.10.6.10”,可以将数据包发送到其他机器,通过您的机器(10.10.6.10/24-> eth1 [machine] eth0->其他lans).实际上,您不需要将其作为默认网关,但对于eth0侧的任何LAN,他们需要将该LAN与10.10.6.10网关相关联.
& gt; [Necessary] In addition to & & xff1a; 10.10.6.0/24, any machine has defined its default gateway as “10.10.6.6.10” to send a data package to another machine through your machine (10.10.6.10.10/24-> eth1 [machine] eth0-> otherlans). In practice, you do not need to use it as a default gateway, but in the case of any LAN on the eth0, they need to link the LAN to the 10.10.6.10 gateway.
>在eth0方面:
& gt; in eth0 & #xff1a;
> [必备] 10.10.5.0/24上的任何机器应该看到10.10.5.10(eth0)并且可以与它(以及彼此)通信.
& gt; [Necessary] 10.10.5.0/24 any machine should see 10.10.5.10 (eth0) and be able to communicate with it (and with each other).
> [必备]另一个局域网上的任何一台机器都应该能够与eth0通信,通过(可能是额外的跳跃)具有10.10.5.254 ip的机器(例如:如果该机器有2个子网,10.10.5.254 / 24在同一台机器上)如果是eth0,而另一个接口是10.xyz/24,则10.xy0 / 24中的机器可以通过路由:10.10.5.0/24和网关10.xyz将数据包发送到10.10.5.10.
& gt; [Necessary] any machine on another local area network should be able to communicate with eth0 by means of a machine with (possibly an additional jump) 10.10.5.254 ip (e.g. & #xff1a; if the machine has two subnets, 10.10.5.254/24 is on the same machine) if it is eth0, and the other interface is 10.xyz/24, then the machine in 10.xy0 / 24 can be sent by road by xff1a; 10.10.5.0/24 and gateway 10.xyz to 10.10.5.10.10.
>如果是这样,那么他们只需要有一条额外的路线通过网关10.x.y.z达到10.10.6.0/24:10.10.6.0/24
& gt; if so, then all they need is an additional route through the gateway 10.x.y.z to 10.10.6.0/24:10.10.6.0/24
用文字说话会变得复杂……
It's complicated to speak in words.
什么会有所帮助:告诉我们网络列表()和每个网络的通道.
What would help #xff1a; tell us the list of networks and the channel of each network.
现在我猜我试着:
Now I guess I tried #xff1a;
[everything other machines (even internet,via the exterior internet gateway)]
|
|(links via switch(s) for 10.x.y.0/24 network,for example.
| If you have such an additionnal LAN.
| Maybe it's even "the Internet",and therefore not in 10.x anything,| but this is just an example.)
|
|
(10.x.y.z?) | [---------------]
(or Internet?)ethZ[some router/Box]ethW(10.10.5.254)
[---------------] |
|
|(links via switch(s) for 10.10.5.0/24 network)
|
[-------] |
(10.10.6.10)eth1[yourBox]eth0(10.10.5.10)
| [-------]
|
|(links via switch(s) for 10.10.5.0/24 network)
|
| [---------------------------]
ethx[any machine in 10.10.6.0/24]
[---------------------------]
调试设置的一般方法:
General method of debugging settingsxff1a;
>假设您是IP数据包:您有源IP,目标IP.
& gt; assumes you're IP data package & #xff1a; you have source IP, target IP.
>现在,在您坐在源的接口上,查看该机器的路由告诉您下一跳是哪个.然后去那里(但首先确保机器的设置允许你,例如在eth0 / eth1机器上,它需要ipforward从一个接口到另一个接口).继续,一次一跳,朝向你的目标(并回到你的源:有时目标机器的路由/ defaultgw被破坏,因此回复数据包不通过正确的路径发送)
& gt; now, on your source interface, look at the machine's route and tell you what the next jump is... and then go there (but first make sure that the machine's set-up allows you, for example, on the eth0/eth1 machine, it needs an ipforward from one interface to the other)... Continue, one at a time, towards your target (and return to your source xff1a; sometimes the route of the target machine/defaultgw is destroyed, so the reply package is not sent through the right path)
> ex1(非常简单):10.10.6.10试图发送到10.10.5.10:step1你在eth1(10.10.6.10).那台机器的路线说“10.10.5.0/24就在这里,在eth0上”. Ipforwarding允许您从eth1跳到eth0.继续eth0. step2:你现在是(相同的IP包)在eth0上.事实证明这是你的目的地:好.步骤2b:回复包:反向源/目的地:你现在是一个数据包(10.10.5.10 – > 10.10.6.10 =):感谢上帝,本地路由告诉你下一跳是在eth1上. step4:没有eth1:你在目的地.好.> ex2(有点长ex :)你是来自“any_machine”,10.10.6.12(在eth1方面)的数据包.你试图达到destinatino谷歌(例如8.8.8.8).所以你是“10.10.6.12 – > 8.8.8.8”,首先你坐在10.10.6.12界面(比方说,eth3). “any_machine”上的本地路由告诉您(因为它是上面的先决条件):“default gw = 10.10.6.10”,所以你跳到“yourBox”,然后到达eth1一侧. step2:你现在正在使用“yourBox / eth1”:现在本地路由告诉你“你需要去默认gw:10.10.5.254,通过eth0”(而“yourBox”上的ipforward允许你从eth1跳到eth0).现在你到达eth0,并按照默认的gw路线,稍后到达ethW的“somerouter”(10.10.5.254).等……(不要忘记检查回路)
& & eth; ex1 (very simple) & eth10 & eth1 & xff1a; 10.10.6.10 ); you are now (the same IP package) on eth0... which you are trying to send to 10.10.10.10.10 & xff1a; step 2 xff1a; reply package xff1a; reply package xff1a; reverse source/d destination xff1a; you are now a data package (10.10.10 — & gt; 10.0.10 & #x6 #ff ff 1a; #xff #eff 1a; thanks to God, you are being informed that your local path is going from eth1 1 < < < ~ 10
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论