what ifa / ifp ?

2007-06-05 Thread bsenthil

route add -net 10.1.1.1/24 0.0.0.0 -ifp fxp0

route add -net 10.1.1.1/24 0.0.0.0 -ifa fxp0   (Error ..ifa)

$  man route
In a change or add command where the destination and gateway are not suf-
ficient to specify the route (as in the ISO case where several 
interfaces

may have the same address), the -ifp or -ifa modifiers may be used to
determine the interface or interface address.

Coule you please explain what -ifp or ifa modifiers mention...

Thanks,
Senthilkumar.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Configure ipaddress and route entries in /etc/rc.conf file

2007-06-04 Thread bsenthil
I am trying to configure ipaddress and route entries. so that i added 
below the entries in /etc/rc.conf file.


vi /etc/rc.conf

inetd_enable=YES
hostname=test.abc.com
ifconfig_fxp0=inet 192.168.110.14  netmask 255.255.255.0
defaultrouter=192.168.110.2
hostname=test.abc.com
static_routes=net1 net2
route_net1=-net 192.168.1.1/24 192.168.110.2
route_net2=-net 192.168.2.1/24 192.168.110.2

and then i restated the network services netif restart

The below entries are listed in router table ...
$ netstat -nr

Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
127.0.0.1  127.0.0.1  UH  00lo0
192.168.110link#1 UC  00   fxp0


Problem :: Default router entries and net1  net2 entries are not added 
in router table...


Please advice me anything i want to configue more in rc.conf file
I can able to add default router by executing  route add -net 0.0.0.0 
192.168.110.2


Thanks,
Senthilkumar.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configure ipaddress and route entries in /etc/rc.conf file

2007-06-04 Thread bsenthil

Yes, It working fine.. Thanks for your help..

inetd_enable=YES
hostname=test.abc.com
ifconfig_fxp0=inet 192.168.110.14  netmask 255.255.255.0
ifconfig_fxp1=inet 192.168.111.14  netmask 255.255.255.0
hostname=test.abc.com
static_routes=net1 net2

route_net1=-net 10.1.1.1/24 *fxp0*  (Error ...)

I am not configure any default router entries . But i want to redirect  
all 10.1.1.1/24 packets through  fxp0.


Help me , how to configure/specify fxp0 dev in router entries...

Thanks,
Senthilkumar.





Reid Linnemann wrote:


Written by bsenthil on 06/04/07 01:17

I am trying to configure ipaddress and route entries. so that i added 
below the entries in /etc/rc.conf file.


vi /etc/rc.conf

inetd_enable=YES
hostname=test.abc.com
ifconfig_fxp0=inet 192.168.110.14  netmask 255.255.255.0
defaultrouter=192.168.110.2
hostname=test.abc.com
static_routes=net1 net2
route_net1=-net 192.168.1.1/24 192.168.110.2
route_net2=-net 192.168.2.1/24 192.168.110.2

and then i restated the network services netif restart

The below entries are listed in router table ...
$ netstat -nr

Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif 
Expire

127.0.0.1  127.0.0.1  UH  00lo0
192.168.110link#1 UC  00   fxp0


Problem :: Default router entries and net1  net2 entries are not 
added in router table...


Please advice me anything i want to configue more in rc.conf file
I can able to add default router by executing  route add -net 
0.0.0.0 192.168.110.2


Thanks,
Senthilkumar.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



Wrong rc script. Try /etc/rc.d/routing restart. routing requires 
netif, but netif does not imply routing.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


add route entries in freebsd os.

2007-06-01 Thread bsenthil

Hi,

I want to add route entries in freebsd os.

route [-n] command [-net | -host] destination gateway [netmask]
route add -net 192.168.11.2 192.168.5.1 255.255.255.0

Problem :: I have two interface ,I want to specify device xlo or xl1 
to route .


-bsenthil.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: add route entries in freebsd os.

2007-06-01 Thread bsenthil

Thanks Horne,

I have two interfaces
eth0 - 192.168.1.5 (gateway - 192.168.1.2)
eth1 -192.168.2.5 (gatwway - 192.168.2.2)

and i try to add router entries in below order ...

route add -net 192.168.100.5 192.168.4.2 255.255.255.0 (??? inteligent not enough to decide which network goes to which 
interface. which one it take eth0 / eth1)



route add -net 192.168.3.5 192.168.1.2 255.255.255.0 (inteligent enough to decide which network goes to which 
interface)



route add -net 192.168.4.5 192.168.2.2 255.255.255.0 (inteligent enough to decide which network goes to which 
interface)



Problem : How the freebsd os handle the first router entries.

- bsenthil


Jonathan Horne wrote:


On Friday 01 June 2007 13:36:42 bsenthil wrote:
 


Hi,

I want to add route entries in freebsd os.

route [-n] command [-net | -host] destination gateway [netmask]
route add -net 192.168.11.2 192.168.5.1 255.255.255.0

Problem :: I have two interface ,I want to specify device xlo or xl1
to route .

-bsenthil.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]
   



i believe its already inteligent enough to decide which network goes to which 
interface...  unless you mean that you have 2 nics on the same subnet in the 
same switch?


cheers,
 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


get/set ifconfig entries through by programmatically

2007-06-01 Thread bsenthil
Is it possible to get/set  ifconfig entries through by programmatically. 
If yes, please send me the code snippet ...


I am trying to get/set ipaddress by executing the command ifconfig .
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


customized strip down freebsd OS (less than 50MB)

2007-05-18 Thread bsenthil

Hi,

I am looking for mini freebsd customized OS (less than 50MB). Is it 
possible to customize the freebsd to below 50MB?


The list of modules i run over freebsd OS
1. TCP/IP stack
2. package installation.
3. File read and write operation
4. Apache server

What is the minimum size of the stripped freebsd OS ?

Please let me know detail/link how to customize freebsd OS.

Thanks,
Senthilkumar.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: customized strip down freebsd OS (less than 50MB)

2007-05-18 Thread bsenthil

   Thanks for all your inputs
   Yea.. I downloaded miniBSD.tgz file and extract the same. A readme in
   the tgz which is not readable. It contains lot of scripts files...
   I don't know how to proceed...
   David Kelly wrote:

On Fri, May 18, 2007 at 07:16:46PM +0530, bsenthil wrote:
  

Hi,

I am looking for mini freebsd customized OS (less than 50MB). Is it 
possible to customize the freebsd to below 50MB?

The list of modules i run over freebsd OS
1. TCP/IP stack
2. package installation.
3. File read and write operation
4. Apache server

What is the minimum size of the stripped freebsd OS ?


In years past I got FreeBSD 4.4 down to about 10 MB. Then added Apache
on top, PHP, Perl, etc. Interesting that each was roughly another 10 MB.

  

Please let me know detail/link how to customize freebsd OS.


Start with a block of granite and remove everything that doesn't look
like your sculpture.

Believe I started with information found here:
[1]http://www.minibsd.org/download.php

I played with the FreeBSD build system and was building world in a
different location than stock, with compiler options special for a
bottom end Soekris board. Built everything dynamically linked that I
could, traditionally everything in /bin was statically linked.

Built ports chrooted in my new virtual world built above.

Used scripts originating with minibsd to cross reference runtime
libraries and application dependencies so that only the necessary
libraries were moved to my CF card. I kept a file listing all the files
I considered mandatory.

Had several Makefiles, one for each stage of the build. Started by using
cvs checkout to start with fresh source code.

References

   1. http://www.minibsd.org/download.php
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


get/set ifconfig details

2007-04-10 Thread bsenthil

Is there any 'C' method API to get/ set ip address of the interface card.
Is there any 'C' method API to get ifconfig details of the interface card.
Is there any 'C' method API to set ifconfig details of the interface card.

I try to get through sysctl() ... Is there any c sample code to get 
ifconfig details 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]