RedHat 7.2 - Freebsd - BIG PROBLEN
Hi, I'm trying to migrate my router from RedHat 7.2 to FreeBSD. Please see the following scrit - it works fine under linux: === touch /var/lock/subsys/local sleep 5 /sbin/ifconfig eth0 down sleep 1 /sbin/ifconfig eth0 193.108.24.75 netmask 255.255.255.255 up sleep 2 /sbin/route add -host 193.108.24.145 eth0 /sbin/route add default gw 193.108.24.145 /sbin/route add -net 192.168.17.0/24 eth0 I could never make that work for FREEBSD. ifconfig fxp0 down ifconfig fxp0 193.108.24.75 netmask 255.255.255.255 up route add -host 193.108.24.75 193.108.24.145 255.255.255.255 or route add -host 193.108.24.75 193.108.24.145 Looks impossible at freebsd...It says Network Unreachable. I read the man page of route; It says this happens when the host is more than one hop away. But it is working with my old RedHat. Typing just: route add -host 193.108.24.75 193.108.24.145 works, but I need 255.255.255.255 mask to have inet access I posted to the local group but the only guy that anaswered me says that it is not possible. Please help, I just can't believe that freebsd can not do it. Thanks in advance, BIVOL ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RedHat 7.2 - Freebsd - BIG PROBLEN
Hi, Actually this box has ONLY one ip, no aliases. This line: /sbin/route add -net 192.168.17.0/24 eth0 Could be igonred. I do not need them. I just need my primary IP to be with such mask..However I'll try to configure virtual interface. And forward the traffic through it. BIVOL Luke Kearney [EMAIL PROTECTED]: On Tue, 4 Nov 2003 10:56:44 +0200 [EMAIL PROTECTED] granted us these pearls of wisdom: Hi, I'm trying to migrate my router from RedHat 7.2 to FreeBSD. Please see the following scrit - it works fine under linux: === touch /var/lock/subsys/local sleep 5 /sbin/ifconfig eth0 down sleep 1 /sbin/ifconfig eth0 193.108.24.75 netmask 255.255.255.255 up sleep 2 /sbin/route add -host 193.108.24.145 eth0 /sbin/route add default gw 193.108.24.145 /sbin/route add -net 192.168.17.0/24 eth0 I could never make that work for FREEBSD. ifconfig fxp0 down ifconfig fxp0 193.108.24.75 netmask 255.255.255.255 up route add -host 193.108.24.75 193.108.24.145 255.255.255.255 or route add -host 193.108.24.75 193.108.24.145 Looks impossible at freebsd...It says Network Unreachable. I read the man page of route; It says this happens when the host is more than one hop away. But it is working with my old RedHat. Typing just: route add -host 193.108.24.75 193.108.24.145 works, but I need 255.255.255.255 mask to have inet access I posted to the local group but the only guy that anaswered me says that it is not possible. Please help, I just can't believe that freebsd can not do it. Thanks in advance, BIVOL Hello, If I understand what it is that you are trying to do I think you need to have a bit of a read of the following http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning- virtual-hosts.html This might clear things up for you. Cheers LK - End forwarded message - ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RedHat 7.2 - Freebsd - BIG PROBLEN
- lan 192.168.1.0 - LAN | | | -- rl0 192.168.1.1 ROUTER fxp0 193.108.24.75 LAN | | | --- ISP 193.108.24.145 Once again: Forget about /sbin/route add -net 192.168.17.0/24 eth0 It was used for lan provided by isp. I never use it I do not need it. So the situation is the following. Internal LAN - Router - ISP LAN The connection between me and the provider is 100Mb LAN. The other users in the *ISP LAN* use VPN to connect to him. I do not use VPN that is why he gave this ip and this strange mask. And it is working with RedHat 7.2 BIVOL Luke Kearney [EMAIL PROTECTED]: OK , now I am really [EMAIL PROTECTED] what about trying something like this ? ifconfig fxp0 inet 193.108.24.75 netmask 255.255.255.255 up route add default -interface fxp0 route add -host 193.108.24.145 -interface fxp0 route add -net 192.168.17.0/24 -interface fxp0 Are you using one NIC in this machine to run your ppp sessions as well as route to the local net ? If you are using a DSL/Cable connection and have ppp setup then there should be a ppp interface either ppp or tun in which case the best way to set the default gateway is route add default -interface tun0 if you can take the time to create a simple diagram of what you are doing I might be able to help more. HTH LK On Tue, 4 Nov 2003 11:22:21 +0200 [EMAIL PROTECTED] granted us these pearls of wisdom: Hi, Actually this box has ONLY one ip, no aliases. This line: /sbin/route add -net 192.168.17.0/24 eth0 Could be igonred. I do not need them. I just need my primary IP to be with such mask..However I'll try to configure virtual interface. And forward the traffic through it. BIVOL Luke Kearney [EMAIL PROTECTED]: On Tue, 4 Nov 2003 10:56:44 +0200 [EMAIL PROTECTED] granted us these pearls of wisdom: Hi, I'm trying to migrate my router from RedHat 7.2 to FreeBSD. Please see the following scrit - it works fine under linux: === touch /var/lock/subsys/local sleep 5 /sbin/ifconfig eth0 down sleep 1 /sbin/ifconfig eth0 193.108.24.75 netmask 255.255.255.255 up sleep 2 /sbin/route add -host 193.108.24.145 eth0 /sbin/route add default gw 193.108.24.145 /sbin/route add -net 192.168.17.0/24 eth0 I could never make that work for FREEBSD. ifconfig fxp0 down ifconfig fxp0 193.108.24.75 netmask 255.255.255.255 up route add -host 193.108.24.75 193.108.24.145 255.255.255.255 or route add -host 193.108.24.75 193.108.24.145 Looks impossible at freebsd...It says Network Unreachable. I read the man page of route; It says this happens when the host is more than one hop away. But it is working with my old RedHat. Typing just: route add -host 193.108.24.75 193.108.24.145 works, but I need 255.255.255.255 mask to have inet access I posted to the local group but the only guy that anaswered me says that it is not possible. Please help, I just can't believe that freebsd can not do it. Thanks in advance, BIVOL Hello, If I understand what it is that you are trying to do I think you need to have a bit of a read of the following http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning- virtual-hosts.html This might clear things up for you. Cheers LK - End forwarded message - ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RedHat 7.2 - Freebsd - BIG PROBLEN
ifconfig fxp0 193.108.24.75 netmask 255.255.255.255 up Looks impossible at freebsd...It says Network Unreachable. I read the man page of route; It says this happens when the host is more than one hop away. Which it is - your netmask specifies tht just 193.108.24.75 is on that wire. You propably want 255.255.255.0. But it is working with my old RedHat. Either RH is wrong or you are using something like an aliased interface. Dw ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RedHat 7.2 - Freebsd - BIG PROBLEN
On Tue, Nov 04, 2003 at 12:12:44PM +0200, [EMAIL PROTECTED] wrote: - lan 192.168.1.0/24 - LAN | | | -- rl0 192.168.1.1 ROUTER fxp0 193.108.24.75 LAN | | | --- ISP 193.108.24.145 Basicaly you have a router with TWO nics. One is rl0 and the other is fxp0. You need to place this in you /etc/rc.conf defaultrouter=193.108.24.145 ifconfig_rl0=inet 192.168.1.1 netmask 255.255.255.0 ifconfig_fxp0=inet 193.108.24.145 netmask 255.255.255.255 You can try this by running /etc/netstart -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]