Date: Sun, 16 Sep 2007 14:13:33 -0700 From: "Len Gross" <sandiegobiker@gmail.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Multiple NICs - custom protocol development Message-ID: <27cb3ada0709161413i163d942cld279e92634d06001@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I have a host on my local 192.168.0 / 24 subnet that works fine in getting to the Internet via a default route.via a wireless connection. I want to develop some custom link protocols and I have placed two Ethernet NICs in the box. I want to be able to send packets from one NIC to the other and maintain the link to the Internet. I've tried a large number of things via rc.conf but when I ping of the cards it is not going out the interface; it just gets looped back. (I test this by disconnecting the "crossover cable" between the two cards.) My current rc.conf has the following attempt, but this fails. # router_enable="Yes" gateway_enable="Yes" # Ethernet 1: ifconfig_xl0="inet 192.168.1.1 netmask 255.255.255.0" # Ethernet 2 ifconfig_rl0="inet 192.168.2.1 netmask 255.255.255.0" # # Set up loop between the two ethernet cards static_routes "xtor, rtox" route_rtox = "-host 192.168.1.1 192.168.2.1" route_xtor = "-host 192.168.2.1 192.168.1.1" Can I do what I want or must I have a second development box? -- Len
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27cb3ada0709161413i163d942cld279e92634d06001>