[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FW1] Routing Problem
Simple trivial netmask problem.
Solaris believes that 157.150 networks has a netmask of 255.255.0.0
(class B network)
If you want it to be 255.255.255.0, you have two options:
* edit the netmasks file and add the folowing entry in it:
157.150.0.0 255.255.255.0
then reboot the machine
* reissue the ifconfig command for elx0, adding the netmask in it:
ifconfig elx0 157.150.144.65 netmask 255.255.255.0
see the netmasks and ifconfig man pages.
--- "Eduardo F. Trillo" <[email protected]> a �crit�: >
>
>
> Hi everybody.
>
> I am having a routing problem with a Solaris machine ( 2.5.1 ).
>
>
> My solaris box has 3 network interfaces and has the following oruitng
> table:
>
> Routing Table:
> Destination Gateway Flags Ref Use
> Interface
> -------------------- -------------------- ----- ----- ------
> ---------
> 127.0.0.1 127.0.0.1 UH 0 37 lo0
> 148.243.163.133 172.16.1.30 UGH 0 3
> 172.18.0.0 172.16.1.11 UG 0 8
> 148.243.0.0 148.243.163.130 U 3 4 elx1
> 157.150.0.0 157.150.144.65 U 2 0 elx0
> 172.16.0.0 172.16.1.10 U 2 21 pcn0
> 224.0.0.0 148.243.163.130 U 3 0 elx1
> default 148.243.163.129 UG 0 527
>
> Here everything is ok ( I am doing static NAT for the IP
> 148.243.163.133
> ). But I have one problem, as you can see all the packets addressed
> to the
> 157.144.0.0 net are going to be delivered by the elx0 interface (
> private
> link ). But that is wrong because I just want the net 157.150.144.0
> to go
> through that interface!! ( This is because the private link only has
> the
> 157.150.144 net and if I want ofr example to access the address
> 157.150.195.5 that packet has to go throuhg the elx1 interface and
> not to
> the elx0 interface. )
>
> So what I did was to remove the entry from the routing table:
>
> route delete 157.150.0.0 157.150.144.65
>
> And then to add:
>
> route add 157.150.144.0 157.150.144.65
> So that packets addressed to the 157.150.144.0 network go through the
> 157.150.144.65 ( elx0 ) interface and other packets go through the
> elx1
> interface. But it does not work!!! When I do this I ca not get any
> packets to the private link!! Any ideas??? I read somewhere that
> Solaris
> 2.5.1 can not have some special routing configurations, is this the
> case???
>
> m
>
> --
> Eduardo Frias
> [email protected]
>
>
>
>
>
>
>
>
================================================================================
> To unsubscribe from this mailing list, please see the
> instructions at
> http://www.checkpoint.com/services/mailing.html
>
================================================================================
___________________________________________________________
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
Yahoo! Messenger : http://fr.messenger.yahoo.com
================================================================================
To unsubscribe from this mailing list, please see the instructions at
http://www.checkpoint.com/services/mailing.html
================================================================================