View previous topic :: View next topic |
Author |
Message |
mxc Guru
Joined: 05 Mar 2003 Posts: 442 Location: South Africa
|
Posted: Tue May 27, 2003 2:07 pm Post subject: How to setup new network connection |
|
|
Hi All,
How does one set up a token ring init.d script in gentoo (post insall). I want to keep the net.eth0 script that i currently have. I tried to add iface_tr0="dhcp" to the /etc/conf.d/net file and then ran env-update. This did not however create a script like net.tr0 in the /etc/init.d/ directory.
Thanks
Mark |
|
Back to top |
|
|
ctford0 l33t
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Tue May 27, 2003 2:46 pm Post subject: |
|
|
This should be just like setting up a second ethernet connection (explained in the install docs). Basically just copy /etc/init.d/net.eth0 to what ever device name it is. So in your case net.tr0, then you can type in /etc/init.d/net.tr0 start...
Chris |
|
Back to top |
|
|
mxc Guru
Joined: 05 Mar 2003 Posts: 442 Location: South Africa
|
Posted: Wed May 28, 2003 8:40 am Post subject: |
|
|
I tried that but it doesn't work. I think there is something that needd to chaged in the script to swith it from ethernet to token ring architecture. |
|
Back to top |
|
|
beowulf Apprentice
Joined: 07 Apr 2003 Posts: 225
|
Posted: Wed May 28, 2003 9:06 am Post subject: |
|
|
Also make the appropriate conf file in /etc/conf.d/
The file to check out is /etc/conf.d/net
You'll probably need to edit the /etc/init.d/net.tr0 or *.tr1 file check for a different /etc/conf.d/net file...
hope this helps _________________ I have nothing witty to say here... ever |
|
Back to top |
|
|
mxc Guru
Joined: 05 Mar 2003 Posts: 442 Location: South Africa
|
Posted: Wed May 28, 2003 10:27 am Post subject: |
|
|
Thanks for the tip. I am a bit new at this though.
1) I made a copy of /etc/conf.d/net to /etc/conf.d/net.tr0.
2) I edited the line iface_eth0="dhcp" to read iface_tr0="dhcp"
3) I have a seperate /etc/init.d/net.tr0 file which is a copy of the /etc/init.d/net.eth0 file.
4) I can't seem to find how to tell this script which conf.d file to use. I change the comment line #NB: Config is in /etc/conf.d/net to #NB: Config is in /etc/conf.d/net.tr0 but I doubt this does anything.
Any help appreciated! |
|
Back to top |
|
|
ctford0 l33t
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Wed May 28, 2003 5:03 pm Post subject: |
|
|
Can't you just add what you need into the existing conf.d/net file?
for instance placing this line in the file also doesn't work?
iface_tr0="dhcp"
I've never seen a need for more than one conf.d/net file. All you really need to copy is the file in init.d so that you can tell the device to start. That file automatically looks to conf.d/net for its configuration and it is perfectly acceptible to have more than one device in there obtaining its ip through dhcp.
Chris |
|
Back to top |
|
|
mxc Guru
Joined: 05 Mar 2003 Posts: 442 Location: South Africa
|
Posted: Thu May 29, 2003 10:06 am Post subject: |
|
|
I found the problem as to why the suggested solution didn't work. I.e. copying the net.eth0 file to net.tr0. Some idiot had disconected the network connection at the hub! What threw me was that on Friday, while I still had windows on my pc things worked. On the weekend I installed gentoo and on Monday the token ring card didn't work. It took me 3 days to find this!
Thanks for all the help! |
|
Back to top |
|
|
|