Visit Our UNIX and Linux User Community


Where do i put ifconfig & route add for boot?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Where do i put ifconfig & route add for boot?
# 1  
Old 10-19-2009
Where do i put ifconfig & route add for boot?

SCO v5.0.6
I figured out what command lines I need to get SSH working, but where do I put these command lines so they stick when booting?

#ifconfig net0 ... netmask ... up
#route add default ...

I know I can add the default gateway to /etc/default/tcp, but...

I would rather run a script with the above ifconfig and route commands at boot time to keep all my commands in one neat place. What file would I put them in?

Thanks, Jeanne
# 2  
Old 10-19-2009
In the /etc/tcp file...
Here is some good reading for you:
Manual TCP/IP Configuration Changes
# 3  
Old 10-19-2009
Thanks..a few questions:
1. does /etc/tcp get overwritten with /etc/default/tcp? i read that somewhere.
2. can i have it run a script by adding /etc/myscript to the file, or is it better to add the command lines individually?

-Jeanne
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #799
Difficulty: Medium
In digital numeral systems, the radix is the number of unique digits minus 1.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

IBM Server doesn't ping gateway unless you put a static route

Just want to know if someone has a clue about what could be happening here: I have an AIX box with four NICs in Ether channel connected to a Cisco Switch. When I try to ping the default gateway, sometimes it works, but sometimes it doesn't work unless it has a defined static route. Thanks... (1 Reply)
Discussion started by: witt
1 Replies

2. IP Networking

route add

I have built a new linux server, via a iLo connection. and I am trying to connect via my desktop to the server I have just built to the management port eth0 via putty. Please could some one advise how to connect to this server from my desktop. Do i need to create add a route access on the... (0 Replies)
Discussion started by: venhart
0 Replies

3. Solaris

ifconfig primary & standby purpose

I have two ethernet interfaces nge0 and nge1. An IP assigned on nge0 is 10.10.10.1/24 and on nge1 is 20.20.20.1/24. I want to make nge0 as primary interface. My question here is, 1. Being nge0 as primary interface, if I ping to an IP 20.20.20.5, what will happen? 2. If the answer for the... (4 Replies)
Discussion started by: nthiruvenkatam
4 Replies

4. Shell Programming and Scripting

need an AWK code: put in parallel & average them

Hi, I have a data as follow: 1, 1.0 4.00 1, 2.0 4.00 1, 3.0 4.43 1, 4.0 4.40 1, 5.0 4.48 2, 1.0 0.00 2, 2.0 4.40 2, 3.0 3.40 2, 4.0 4.40 2, 5.0 1.47 3, 1.0 1.00 3, 2.0 3.40 3, 3.0 2.40 3, 4.0 2.40 3, 5.0 2.40 (1 Reply)
Discussion started by: nica
1 Replies

5. Solaris

ifconfig - making netmask & broadcast address permanent?

hi, I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address. I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated. before reboot: eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies

6. UNIX for Dummies Questions & Answers

perl script dies altogether when I put an & after it

ignore (2 Replies)
Discussion started by: hairytorus
2 Replies

7. Solaris

Route Add

Hi, I am trying to add route command in Solaris 10 machine in the following fashion: route add -host 10.8.112.10 180.144.1.250 -interface lo0:1 this command fails with an error "lo0:1: bad value" I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the... (3 Replies)
Discussion started by: sudhir_shet
3 Replies

8. UNIX for Dummies Questions & Answers

How to use route command on SuSE & Cygwin

If I'm at a wireless cafe running SuSE and I want to read my mail but the wireless cafe blocks port 25 for smtp but I have a VPN connection to my home machine, how do I use the "route" command. If I'm at home on my windows machine and have a VPN connection to another network, can I use the... (3 Replies)
Discussion started by: siegfried
3 Replies

9. IP Networking

Do I need to add a route??

I have two networks connected by cisco routers. My first subnet is 192.168.0.0 and my second is 192.168.1.0. My SCO unix machine is on the 192.168.1.0 subnet with an IP of 192.168.1.231. It can see the entire .1.0 subnet but nothing on the other network. My cicso router(gateway) to the other... (6 Replies)
Discussion started by: agoodrich
6 Replies

10. AIX

route add

Hello , We have 3 rs/6000 server's running aix on our local network, so each time I try to ping one of these servers we get a "network is down" error , I've been instructed to use to route add command which is ... #route add server.ip router.ip after this the ping command works fine ,... (6 Replies)
Discussion started by: cubicle^dweller
6 Replies

Featured Tech Videos