ipcop support

community support forum
It is currently Sat May 25, 2013 7:42 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Add routing to IPCOP
Unread postPosted: Wed Apr 18, 2012 4:17 pm 
New User

Joined: Thu May 19, 2011 10:18 pm
Posts: 2
Hi All

We are adding a new link to our network we currently have the following setup

IPCOP, with a static RED interface
Green IP is 192.168.1.1

We now have a new diginet line to a branch with a Cisco router with destination IP 192.168.191.201 & 192.168.191.202 & 192.168.191.203.
Whats the best config to do?

1 - Add NIC to IPCOP
I tried this and keep getting RTNETLINK no answer - when I boot IPCOP and red Interface does not start

2 - make Cisco IP 192.168.1.2 and using routing on IPCOP to send traffic there?
If I do this how do I make the "route add ...." statement permanent?

Thanks


Top
 Profile  
 
 Post subject: Re: Add routing to IPCOP
Unread postPosted: Thu May 10, 2012 2:01 pm 
New User

Joined: Thu May 10, 2012 1:03 pm
Posts: 4
you can make a new shellscript in /etc/rc.d called rc.local done like this-->

Code:
nano /etc/rc.d/rc.local


Add this, with your own IP parameters
Code:
#!/bin/sh
route add -net 192.168.4.1 netmask 255.255.255.0 gw 192.168.0.2


Code:
chmod +x /etc/rc.d/rc.local


now a reboot or an execution of the script will add the route

if you make IP changes through setup, the route will be reset, so a reboot or an execution of the script will help again


Top
 Profile  
 
 Post subject: Re: Add routing to IPCOP
Unread postPosted: Fri May 11, 2012 12:34 am 
Site Moderator
User avatar

Joined: Sun Jun 06, 2004 3:38 am
Posts: 3742
Location: Colorado, USA
http://www.ipcop.org/2.0.0/en/admin/htm ... local.html

_________________
For the 2.5^15th time :: Better Details = Better Answers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group