IP Forwarding - Newbie Qu


 
Thread Tools Search this Thread
Special Forums IP Networking IP Forwarding - Newbie Qu
# 1  
Old 12-13-2001
Question IP Forwarding - Newbie Qu

I'm looking to enable IP forwarding from a private LAN thru a Solaris Unix box onto a general LAN. Can Anyone tell me how to go about it ? An example of hte command line would be a great help.

Thanx
# 2  
Old 12-13-2001
The command to turn on ip forwarding is:
ndd -set /dev/ip ip_forwarding 1

The values are:

0 never forward
1 always forward
2 forward only if more than one interface is up
# 3  
Old 12-13-2001
I have this enabled in /etc/rc2.d/S69inet but am finding that since I have 3 NICs :

1 going to public LAN
1 going to another private LAN
1 going to private LAN i want to ip forward.

I find that the routing for some reason is going to the 1st private LAN NIC rather than the 2nd one I want. What am I doing wrong / or need to do ?

Thanx
# 4  
Old 12-13-2001
This sounds like a routing problem. With more than one NIC on a Sun box, dynamic routing is enabled by default. Try using the touch command to create the file /etc/notrouter and reboot the machine. Then you can add static routes to send things where you want. If this still doesn't work, can you give us the output of ifconfig -a and netstat -rn?
# 5  
Old 12-13-2001
How do I add statis routes ?

What's the command line syntax so I can give it a try.

Thanx
# 6  
Old 12-13-2001
Static routes are added with the route command. Try man route and see if this info helps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with DHCP Forwarding

Hi all. I'm not sure I'm posting this in the correct forum. Let me know if I should move it. I'm trying to setup a downstream router. I have a fairly standard gateway box that provides NAT, DCHP, etc. I want to add another router for QOS. I'd like to go from the gateway to the QOS box, then... (2 Replies)
Discussion started by: Thorgear
2 Replies

2. Linux

IP Traffic forwarding

Hello All I have the following setup of a network. Client machines sends requests to the server which is (192.168.1.50) running on Ubuntu server 8.04. And this server forwards all incoming traffic from clients to another server (192.168.1.100) when it's available. The availability is checked... (0 Replies)
Discussion started by: Anuradhai4i
0 Replies

3. Shell Programming and Scripting

perl newbie . &&..programming newbie

Hi, I am new to programming and also to perl..But i know 'perl' can come to my rescue, But I am stuck at many places and need help..any small help is much appreciated... below is the description of what i intend to acheive with my script. I have a files named in this format... (13 Replies)
Discussion started by: xytiz
13 Replies

4. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

5. UNIX for Dummies Questions & Answers

UNIX newbie NEWBIE question!

Hello everyone, Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware. I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies

6. Cybersecurity

ssh X-forwarding and remote forwarding behind proxy

Hi, from my workplace we use a proxy to connect to the outside world, including external ssh servers. The problem is that the server is seeing the connection coming from the proxy and knows nothing about the client behind it. The ssh connection itself works fine, but x-forwarding does not work as... (1 Reply)
Discussion started by: vampirodolce
1 Replies

7. Solaris

mail forwarding

Hello everybody, I have solaris 10 running on SF v890, I need to forward some sepecific root mails resulted from some application, (or all root mails) to other machine running Solaris 10 also. does it have anything to do with mail relay, or just change the log settings??? Thanks in Advance... (1 Reply)
Discussion started by: aladdin
1 Replies

8. UNIX for Advanced & Expert Users

Port forwarding

Hi I want to set up port forwarding from one network to another network. I already have this configured on the Linux box using iptables. iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 1521 -j DNAT --to 10.218.146.230 iptables -A FORWARD -p tcp -i eth1 -d 10.218.146.230 -j ACCEPT ... (2 Replies)
Discussion started by: slash_blog
2 Replies

9. IP Networking

ip forwarding

Can anyone out there explain to me how to multi home a nic? I hate to say it but I'm a windows guy forced to learn Unix. The issue I currently have is I can't changed the ip on eth0, but in order to make it pingable by other servers I need to multi home the nic with a totally seperate Ip. Any help... (1 Reply)
Discussion started by: win2khater
1 Replies

10. Shell Programming and Scripting

virus forwarding ?

Hello, I have created a .forward file to automatically forward all e-mails from my unix account to a webmaster account. I want to know if an e-mail that is carrying a virus could infect my server or the server with the webmaster account, or both servers ? (2 Replies)
Discussion started by: silver40
2 Replies
Login or Register to Ask a Question