Find the answer to your Linux question:
Results 1 to 3 of 3
It took almost one minute. How do I reduce the time? Also how do I undo the changes for update-rc.d networking defaults...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    29

    Configuring Network Interfaces At Startup Takes Too Long

    It took almost one minute.
    How do I reduce the time?
    Also how do I undo the changes for update-rc.d networking defaults

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hello,
    i dont understand
    "Also how do I undo the changes for update-rc.d networking defaults"
    What did you do?

    i always recommed install wicd to manage network, this could reduce time...

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    29
    Okay maybe I should break my questions in two parts:
    Q1
    What does update-rc.d networking defaults do?
    quote
    Here is what I did:

    Refer to post 1 of this webpage: backtrack-linux.org/forums/backtrack-howtos/209-how-start-networking-backtrack.html]How to Start Networking in Backtrack


    1. To start networking in Backtrack 4 final issue the following command.

    /etc/init.d/networking start

    This will attempt to start all the interfaces in the /etc/network/interfaces file.

    root@bt:~# cat /etc/network/interfaces
    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet dhcp

    auto eth1
    iface eth1 inet dhcp

    auto eth2
    iface eth2 inet dhcp

    auto ath0
    iface ath0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp

    If you don't have or don't want some of these interfaces then simply remove the from this file and they will not start.

    If you need to set a static IP just set the variables in the /etc/network/interfaces file

    auto eth0
    iface eth0 inet static
    address 192.168.0.100
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1

    You will also need to make sure you set a nameserver in /etc/resolv.conf

    root@bt:~# cat /etc/resolv.conf
    nameserver 192.168.0.1

    So for example if all you have is eth0 and wlan0 on your system and you want them both to get a adress via DHCP then remove every thing else for the file with the exception of the lo interface. Here is a example.

    root@bt:~# cat /etc/network/interfaces
    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp


    Now if are lazy and want all this to start at boot you can simply issue this command as root

    update-rc.d networking defaults

    This will create all the proper sym-links

    What about ssh?

    So while I am on the subject I may as well go over ssh. In order to use ssh on backtrack 4 final you need to generate the keys first.

    sshd-generate

    after that you can start ssh like this:

    /etc/init.d/ssh start

    or you can add it to the boot sequence like this:

    update-rc.d ssh defaults

    /unquote

    Q2

    How do I reduce the time span of configuring network interfaces?
    Is there any way to check what it does?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...