-
Senior Member
registered user
Re: Who help me

Originally Posted by
danielek
i installed debian on my hard drive. and i have 2 network adapter
1 network adapter i use to conneting to internet
2 network adapter i use to routing conneting internet
all time i used win 2000 server to routin my internet.
Who help me to configure DHCP and routing internet step by step
nice day
You will have to edit a couple of files as root in a console window. The first being /etc/network/interfaces an example config is below you would of course adjust it for your use.
Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo eth0 eth1
iface lo inet loopback
#Network interface
iface eth0 inet dhcp
iface eth1 inet static
address 192.168.0.254
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
With the settings in this file your internal network IPs would be in the 192.168.0.??? range so you would set for example your first machine on the network to an IP of 192.168.0.1 with a gateway of 192.168.0.254. example /etc/network/interfaces config of the first machine on the network:
Code:
# /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
Next you would have to edit the file /etc/resolv.conf for your nameservers example below:
Code:
search wolf
nameserver 192.168.1.10
nameserver 192.168.1.34
It will work with only one namserver line the extra line is not necessary nor is the search of your domain this would be done with the same settings for every machine on the network also. You may also want to check that your hostname is set properly in the file /etc/hostname example below this would also be done for every machine on the network except you would choose different names for each machine on the network.
After you have done these steps then you would still as root in a console window /etc/init.d/networking restart if your network is already running or just start if the network is stopped to activate the network with the new settings.
To have the machines on the internal network access the internet you will have to use something called NAT (network address translation) there are a couple of programs that you can install from debian with apt-get to do this the first being firestarter the second being bastille-linux which in addition to performing NAT is a system security hardening tool and if your feeling really adventurous and want to edit the configuration files yourself you can use what I do Arno's Iptables.
The above assumes the other machines on the network are running Debian if they are running windows then you would use the settings above for the windows network settings.
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

G-Technology G-SPEED Shuttle XL 8-Bay Thunderbolt 3 RAID ENCLOSURE ONLY
$550.00

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

G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage - Housing Only
$200.00

HP controller P3410-69003 NetRAID-1M SCSI 64-bit U160 32MB Cache (PCI)
$359.00

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00
$1619.30

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

LSI 9260-8i 512MB SAS SATA 8-port PCI-E 6Gb RAID Controller Card US
$29.88

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

BROADCOM 05-50077-01 PCI-E 4.0 x8 PCI-Express MegaRAID 9560-8i RAID Controller
$714.99

Dell PowerVault MD3000i AMP01 Storage Array 4x Cad 2x PSUs No HDDs/Controllers
$164.95