Articles of 接口

如何在Ubuntu Linux下设置networking接口亲和力?

我有一个带有6个networking接口的多宿主linux机器,用来运行一些路由器硬件的testing。 我希望能够在任意进程上设置“NIC关联”(缺less更好的术语),以便即使目标IP可能对应于本地接口,该进程的所有networking通信也将通过另一个进程路由出去接口(并由外部设备环回)。 理想情况下,一个进程的关联设置不会影响另一个进程。 作为一个示例用例,说我有eth0 = 192.168.0.1和eth1 = 10.0.0.1。 外部路由器分别连接到eth0和eth1,IP地址分别为192.168.0.2和10.0.0.2。 如果我打开我的shell并ping通10.0.0.1,那么没有stream量会穿过外部连接,因为目标对应于本地机器,但是如果我以某种方式将shell进程的亲和性设置为eth0,则ICMPstream量将通过eth0stream出,进入外部路由器,再回到eth1。 这是我想保证的外部路由器的遍历,因为将有多个,我需要能够绑定到任意的网卡。 这可能吗? 鉴于迄今为止我的search,我没有看到答案,但没有提到我想做的事情导致我怀疑我错过了一个重要的考虑,因为这似乎不是一个原来的问题(只是一个奇怪的)。 FWIW,这是一个Ubuntu Linux 11.10盒子。 任何指向类似的工作或build议的工具将不胜感激。 谢谢!

如何设置两个网关到互联网的Openvpn服务器

我有一个openvpn服务器后面两个湾接口:eth1和eth2其中eth1是默认的gw和eth2是openvpn绑定到的地方。 在build立任何隧道之前,我的ovpn服务器通过默认的gw(通过eth1)回应ovpn客户端的问题和tcp协议丢失。 这是发生了什么事情: wan client —–> eth2 —-> openvpn —–> eth1 —-> lost and not delivered back to client 有没有办法告诉ovpn坚持eth2,并考虑到所有的stream量?

多个IP – 不同的网关 – 一个接口 – Debian Squeezy

我在这里和其他地方读了很多答案,但我找不到合适的答案。 我尝试了几个解决scheme,但没有任何工作 我有一个接口eth0的服务器。 我有多个IP,但是我无法让他们工作。 也许你可以帮助我。 etc / network / interfaces(我在其他网站上发现了这个解决scheme): # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo eth0 iface lo inet loopback # The primary network interface auto eth0 allow-hotplug eth0 iface eth0 […]

rhel中/etc/udev/rules.d/70-persistent-net.rules文件的用法是什么?

Linux中使用/etc/udev/rules.d/70-persistent-net.rules文件是什么? 是除了70-persistent-net.rules以外的其他方式来更改linux中的接口名称? 谢谢。

仅为虚拟接口configurationIP地址

在我目前的CentOS ifconfig中,我有eth0和虚拟接口eth0:0 – eth0:3的范围,每个在子网69.xx.yy.194/29 (gateway = .193 ,broadcast = .199 ) 现在我只有一个镜头,因为我通过远程terminal访问服务器,所以我想在这里问一下,仔细检查一下我要做什么。 我猜如果我执行ifdown eth0 ,它将采取一切,包括接口closures。 我想要的是能够把我的5个服务中的任何一个运行在机器上,把它们插入到它们自己的虚拟接口中(注意,我现在只有4个接口) 因此,是否有可能没有分配给eth0的IP地址,而是把它放在eth0:0所以我最终有5个接口,每个都有一个单独的地址? (这会对我的PuTTY连接产生意想不到的副作用吗?)

带有3个网卡的服务器

Totaly编辑: 我有3个networking链接eth0 eth1 eth2。 我做了3桌T1 T2 T3。 在/ etc / network / interfaces我写道: auto eth0 iface eth0 inet static address 1.0.0.1 netmask 255.255.255.0 post-up ip route add 1.0.0.2/32 dev eth0 src 1.0.0.1 table T1 post-up ip route add default via 1.0.0.2 table T1 post-up ip rule add from 1.0.0.1 table T1 post-down ip rule del […]

OS / X中的路由表小牛 – 导致跟踪路由:sendto:无法分配内存

OS / X根据“networking首选项”中的接口顺序执行大部分路由。 我需要分开stream量,所以我先把默认路由,然后路由stream量到第二个接口。 问题是,在使用route命令之后,我开始在浏览器中或者traceroute中说'无法分配内存'。 所以路线似乎在做错事。 这里是细节: 我有两个接口,按照这个顺序: Wi-Fi连接到苹果时间胶囊,链接到互联网 – 10.0.1.9 连接到互联网的ISP的局域网连接 – 10.0.2.250 这很好,但是,我想通过第二个链接来处理stream量,而不仅仅是作为一个故障转移。 所以,我使用路由命令,如下所示: route -n add -host 197.242.144.171 10.0.2.250 route -n add -host 197.242.144.175 10.0.2.250 route -n add -host 173.194.41.182 10.0.2.250 这不会给出任何错误和netstat -nr显示: 197.242.144.171 10.0.2.250 UGHS 0 1 en0 197.242.144.175 10.0.2.250 UGHS 0 0 en0 173.194.41.182 10.0.2.250 UGHS 0 12 en0 但是,如果我尝试跟踪路线,那么我就是这样得到的: […]

仅将openvpn设置为接口设备

我只是在The Geek Stuff上使用这个指南来安装OpenVPN客户端 但现在(有点像预期的),我所有的stream量都通过VPN路由。 我其实只是想设置接口设备。 有谁知道这是怎么做到的吗? 这是configuration文件: client dev tun remote purevpnserver.test 53 proto udp nobind persist-key persist-tun tls-auth Wdc.key 1 ca ca.crt cipher AES-256-CBC comp-lzo verb 1 mute 20 float route-method exe route-delay 2 auth-user-pass auth-retry interact explicit-exit-notify 2 ifconfig-nowarn auth-nocache

Debian Jessie / etc / network / interfaces后续路由网关不会坚持重启

我有一个有2个接口的Debian Jessie盒子。 我希望eth1在公共静态IP 1.2.3.4上路由公共stream量,eth0在192.168.0.55上路由mgmtstream量,所以我编辑/ etc / network / interfaces看起来像这样: source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet static address 1.2.3.4 netmask 255.255.255.0 gateway 1.2.3.1 dns-nameservers 8.8.8.8 post-up route del default gw 192.168.0.1 eth0 post-up route add default gw 1.2.3.1 eth1 […]

%无效的接口types和编号

我试图从Cisco CCENT书籍中应用2811路由器使用VLAN的scheme。 我已经在Packet Tracer中的书中应用了这个networking。 这里是本书中的部分,接下来是我的实现和我得到的错误。 //book example Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Corp Corp(config)#enable secret myPassword Corp(config)#interface vlan 1 Corp(config-if)#description myDescriptionIsAwesome1 Corp(config-if)#ip address 10.1.1.1 255.255.255.0 Corp(config-if)#no shutdown Corp(config-if)#int f1/0 Corp(config-if)#description myDescriptionIsAwesome2 Corp(config-if)#no shutdown Corp(config-if)#int f1/1 Corp(config-if)#description myDescriptionIsAwesome3 Corp(config-if)#no shut //my implementation in Packet Tracer Router#config t Enter configuration […]