Results 1 to 7 of 7

Thread: Internet config

  1. #1
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    11

    Internet config

    I don’t know how to configure my internet connection because I have to connect to our server and than though our provider server so I have 2 gateways(i connect to a static DSP and through a Lan because i have to connect to our lunux server first because we share a connection). Then how can I configure my dns settings?
    I also have another question. Why what helps me if I create my /home directory on my hdd drive?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: Internet config

    Quote Originally Posted by Xpiral
    I don’t know how to configure my internet connection because I have to connect to our server and than though our provider server so I have 2 gateways(i connect to a static DSP and through a Lan because i have to connect to our lunux server first because we share a connection). Then how can I configure my dns settings?
    I also have another question. Why what helps me if I create my /home directory on my hdd drive?
    You need to put the nameserver line(s) in the /etc/resolv.conf in the machine you are connecting from. These would be the same as the ones you already using in your server it should be as simple as duplicating the settings. For your own /home well if you every have a crash and your / partition gets trashed then you loose all your user data with a separate home this problem does not exist, you just have to worry about losing the whole drive. Now that I am reading the post again you do not have two gateways only the single gateway and that is your server that you connect through it is this address that you should use for your gateway IP on the machine you are connecting from.

  3. #3
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    11

    ...

    No I am certain that I have two gateways and two dns ip-s because I am was a windows user (still am) but I want to change that, and in the internet connection I have 2 gateways and in the enable dns tab I have also 2 ip-s and I have something like am address like: iasi.astral.ro and a host name. Where should I put this in Linux, because there are so few options?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: ...

    Quote Originally Posted by Xpiral
    No I am certain that I have two gateways and two dns ip-s because I am was a windows user (still am) but I want to change that, and in the internet connection I have 2 gateways and in the enable dns tab I have also 2 ip-s and I have something like am address like: iasi.astral.ro and a host name. Where should I put this in Linux, because there are so few options?
    I do not see how you can have two gateways that would mean that you have two entirely separate network connections coming in and at least three network cards in the machine at the start of your network and doing some kind of load balancing between the two connections even that does not matter to you because that machine takes care of that part of it and handles the connections made to the third card and passes them on to the proper place. So do you have such a setup? If not then this is what you have to do for your machine where if I read your first post correctly the cable from it's network card runs to another machine where the connection is then passed on to the internet. In the machine where it connects too the card the cable enters it is this IP that you have to use for the Gateway setting. Now if there is a hub/switch that it passes through on the way this is not important but if there is a router that has an IP and is not simply passing the connection on then it is this IP that you must use. Now on the machine you want to be connecting up the IP Address must be on the same IP range as the gateway IP eg. If the gateway is 192.168.0.254 then the IP of the machine connecting to it must be in the range 192.168.0.1 to 253. An example of what the /etc/network/interfaces file where these settings are kept can look like.

    Code:
    >$ cat /etc/network/interfaces
    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
    
    # The loopback interface
    auto lo
    iface lo inet loopback
    
    # The first network card - this entry was created during the Debian installation
    # (network, broadcast and gateway are optional)
    auto eth0
    
    
    iface eth0 inet static
            address 192.168.0.1
            netmask 255.255.255.0
            network 192.168.0.0
            broadcast 192.168.0.255
            gateway 192.168.0.254
    Now the DNS or nameservers go into the /etc/resolv.conf that I mentioned in my first post and it would look like this.
    Code:
    >$ cat /etc/resolv.conf
    search wolf
    nameserver 192.168.1.10
    nameserver 192.168.1.34
    The search line for your domain should be optional (you will have to edit manually to get it in the file) and you only need one nameserver a second is not necessary but nice to have for a backup in case the first becomes unavailable. You can either edit these files as root and put in the proper settings for your IP settings you are using or you can as root again in a console window type in and then enter key netcardconfig to have a graphic dialog wizard to allow you to enter the settings one at a time and if you want the two nameservers then separate them by a ; and a space between in the window that you enter the settings into in the only line available. If you edit by hand then you need to type in and enter key again /etc/init.d/networking restart to restart the network with the new settings and get a connection.

  5. #5
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    11

    Sorry

    You are right i have only one gateway.But my problem is:I changed the settings in the resolv.conf but it wouldn't let me save the file? Why? And can i log in as root in knoppix?

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: Sorry

    Quote Originally Posted by Xpiral
    You are right i have only one gateway.But my problem is:I changed the settings in the resolv.conf but it wouldn't let me save the file? Why? And can i log in as root in knoppix?
    If you are running from the CD then you open a console window(clam shell icon on the taskbar) and run netcardconfig that will give you the opportunity to choose either DHCP or static settings if from the HD then in the console window use su then type in the root password and enter then you are root and can make any changes you want. When editing from the CD you can use sudo in front of a command to have root privileges while doing the editing eg. sudo gvim /etc/network/interfaces then you can save the file after the changes and not get the read only error.

  7. #7
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    11

    Thanks

    Thanks. I opened the resov.conf with kwrite because with gvim i couldn't modify the text. After putting the second nameserver in, my internet worked like a charm, and still doe's.

Similar Threads

  1. How to config X
    By lotech in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 04-09-2005, 11:49 AM
  2. Where is .config for 2.6.7
    By algernon in forum General Support
    Replies: 3
    Last Post: 10-11-2004, 11:29 PM
  3. Internet Config?
    By Romen in forum General Support
    Replies: 5
    Last Post: 02-07-2004, 05:27 AM
  4. Internet Config
    By hawgs74 in forum General Support
    Replies: 1
    Last Post: 10-01-2003, 05:34 PM
  5. Please Post a Simple CONFIG file for Kernel Config
    By bongski55 in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 09-06-2003, 05:58 AM

Posting Permissions

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


WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay picture

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay

$107.99



QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working picture

QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working

$149.99



9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US picture

9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US

$49.50



Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed picture

Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed

$34.99



2-Bay/4-Bay Hard Drive Enclosure for 3.5

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2

$119.99



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



Lot Mini SAS SFF-8643 To 4 SATA 7pin Hard Disk 6Gbps Data Server Raid Cable 1M picture

Lot Mini SAS SFF-8643 To 4 SATA 7pin Hard Disk 6Gbps Data Server Raid Cable 1M

$1150.00



TerraMaster D5-300C 5-Bay USB-C Hard Drive Enclosure picture

TerraMaster D5-300C 5-Bay USB-C Hard Drive Enclosure

$115.00



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69



Dell EMC 15-Bay 3.5

Dell EMC 15-Bay 3.5" SAS Disk Array Enclosure 12Gbps Dual LCC - 2x Power Supply

$249.00