-
Senior Member
registered user
Re: ...

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.
Similar Threads
-
By lotech in forum Hdd Install / Debian / Apt
Replies: 8
Last Post: 04-09-2005, 11:49 AM
-
By algernon in forum General Support
Replies: 3
Last Post: 10-11-2004, 11:29 PM
-
By Romen in forum General Support
Replies: 5
Last Post: 02-07-2004, 05:27 AM
-
By hawgs74 in forum General Support
Replies: 1
Last Post: 10-01-2003, 05:34 PM
-
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
-
Forum Rules

NEW Kingston 8GB DDR4 2666MHz Desktop RAM KCP426NS8/8 PC4-21300
$30.00

SK hynix 32GB(4 x 8GB) HMA81GU6JJR8N-VK PC4-2666V DDR4 Desktop RAM - CR337A
$89.95

Lot of 2 SK Hynix HMAA2GS6AJR8N-XN 16GB DDR4 PC4-3200AA 1Rx8 Laptop SODIMM RAM
$354.99

16GB (2x8GB) Kingston HyperX blu KHX1600C10D3B1/8G PC3-12800U DDR3 1600
$27.99

Lot of 51 Micron 8GB PC4-2666V DDR4 1Rx8 DIMM RAM MTA8ATF1G64AZ-2G6E1 933276-001
$1499.99

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$66.00

Samsung W03J0009150379F87A 64GB (2x32GB) RAM DDR4 2400MHz CRC0Y
$179.99

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68

Apple iPad 11th Generation 10.9" 128GB (Wi‑Fi + 5G) Blue
$220.00

Teamgroup/Crucial Desktop Memory RAM 32GB (4x8GB) DDR3 1600MHz PC3-12800
$130.00