Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th October 2007, 10:33 PM
Fedwhora Offline
Registered User
 
Join Date: Oct 2007
Posts: 1
STATIC ROUTING/HARDWARE CONFIGURATION-DUAL NIC (n00b)

Hello everyone. I am trying to host basic networking services on a linux machine running Fedora 7. I currently have three issues:

1. I need to configure the server to route traffic between two networks.
2. I need to configure DNS for the secondary network.
3. I am unable to activate two network cards simultaneously upon boot. I would prefer to keep ONE subnet.

Proposed network structure:

WAN=>router=>LAN1=>linux router=>LAN2

Current Network Structure (because I do not know how to configure static routes)

WAN=>router=>LAN1=>router2=>linux router/LAN2

As you can see I currently have a store-bought router handling the routing tasks of the linux router. The goal is to remove this second router from the network and replace it with the linux router.

Operating System:

2.6.22.9-91.fc7
Fedora release 7 (Moonshine)

Relevant Hardware:

Linksys Gigabit Network Adapter
eth0
IRQ-Uknown

Lite-On Communications Inc LNE100TX
eth1
IRQ-Uknown

Services to clients:
named
dhcpd
samba
sshd
vnc
remote desktop

Currently, this is the only error I am aware of:

# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: RTNETLINK answers: File exists
Error adding address 192.168.xxx.xx for eth0.
[ OK ]

Here are my configuration files:

--network (/etc/sysconfig)

NETWORKING=yes
HOSTNAME=server.domain.local
FORWARD_IPV4=true

--ifcfg-eth0 (/etc/sysconfig/network-scripts)

GATEWAY=192.168.xxx.x
TYPE=Ethernet
DEVICE=eth0
HWADDR=xx:xx:xx:xx:xx:xx
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.xxx.xx
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=no
NETWORK=192.168.xxx.0
BROADCAST=192.168.xxx.255
HOSTNAME=server.domain.local
DOMAIN=domain.local

--ifcfg-eth1 (/etc/sysconfig/network-scripts)
# Lite-On Communications Inc LNE100TX
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
NETMASK=255.255.255.0
IPADDR=192.168.xxx.xx
GATEWAY=192.168.xxx.xx
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=no
NETWORK=192.168.xxx.0
BROADCAST=192.168.xxx.255
HOSTNAME=server.domain.local
DOMAIN=domain.local

--named.conf (/var/named/chroot/etc)

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*

};

zone "." IN {
type hint;
file "named.root";
};

zone "domain.local" {
type master;
file "domain.local.zone";
allow-update { key "rndckey"; };
notify yes;
};
zone "xxx.168.192.in-addr.arpa" {
type master;
file "xxx.168.192.in-addr.arpa.zone";
allow-update { key "rndckey"; };
notify yes;
};
zone "localhost." IN {
type master;
file "localhost.zone";
allow-update { key "rndckey"; };
};

zone "0.0.127.in-addr.arpa." IN {
type master;
file "named.local";
allow-update { key "rndckey"; };
};



zone "255.in-addr.arpa." IN {
type master;
file "named.broadcast";
allow-update { key "rndckey"; };
};

zone "0.in-addr.arpa." IN {
type master;
file "named.zero";
allow-update { key "rndckey"; };
};

include "/etc/rndc.key";

--dhcpd.conf (/etc)

authoritative;
include "/etc/rndc.key";
Server-identifier server;
ddns-domainname "domain.local.";
ddns-rev-domainname "xxx.168.192.in-addr.arpa.";
ddns-update-style interim;
ddns-updates on;
ignore client-updates;

# This is the communication zone
zone domain.local. {
primary 127.0.0.1;
key rndckey;
}
default-lease-time 21600; # 6 hours
max-lease-time 43200; # 12 hours

# Client configuration:
option domain-name "domain.local.";
option ip-forwarding off;
subnet 192.168.xxx.0 netmask 255.255.255.0 {
range 192.168.xxx.200 192.168.xxx.210;
option routers 192.168.xxx.x; # default gateway
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.xxx.255;
option domain-name-servers 192.168.xxx.xx;
zone xxx.168.192.in-addr.arpa. {
primary 192.168.xxx.xx;
key rndckey;
}
zone domain. {
primary 192.168.xxx.xx;
key rndckey;
}
}

--SUMMARY

Here is what works:

DDNS for LAN2 is working
DNS for LAN2=>WLAN is working
DNS for WLAN=>LAN2 is working
DHCP=>LAN2 is working
SSH=>LAN2 is working
SAMBA=>LAN2 is working
VNC=LAN2 is working
REMOTE DESKTOP=>LAN2 is working

I want to make a couple points which I think are important. I have been working on Linux for about two weeks now. I know about one dozen commands, and half as many file locations. I have no familiarity with doing ANYTHING in Linux, but I am a DOS expert, and extremely familiar with a console. I do not know how to configure routes on any system, including pre-configured "hardware" routers. It is my understanding that a static route has three parts: Source, Gateway, and Destination. What addresses are to be set for these values and why is beyond me. I am familiar with small networks, and all TCP/IP settings should be accurate.

Thank You for your time!
Reply With Quote
Reply

Tags
configurationdual, n00b, nic, routing or hardware, static

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NetworkManager static ip and routing ormsky Servers & Networking 6 22nd April 2010 05:10 AM
Static IP configuration not working... DeCSS Using Fedora 2 13th December 2008 08:01 PM
Need help routing static inet ips through a linksys wrt54g.. revopowerdGTI Servers & Networking 0 24th November 2007 05:42 AM
Static Routing Quick Question emachala Servers & Networking 0 18th October 2006 03:24 AM
n00b needs help! DHCP/DNS/Routing t3hi3x Servers & Networking 8 19th September 2006 02:10 AM


Current GMT-time: 07:00 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat