Vous êtes sur la page 1sur 8

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ...

Page 1 of 8

Linux Windows Install Setup Configuration Project


Linux Classes, Linux training, Windows, Computer, Technology, Install, Configuration Setup and Troubleshoot Project

Us

Disclaimer

Home Contact Privacy Recent posts

Home Step by step Install Setup and Configure Linux Fedora Core Server and Network Management with Screen Shot and Example.

Search
Ads by Google
Custom Search

Linux

Find a Route

Route

Red Hat Linux

Home
Linux Training and Windows Install Setup Configuration Project with Screenshot and Example.

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server Configuration.
Linux Network

Linux Commands
Guides and help on using basic Linux commands & basic Unix commands with step-bystep example.

Step by step guide on add, view, edit and configure static route on Linux Fedora Core.
The article below show the step by step to display route, configure route, adding and edit route and static route on Linux Fedora Core using Linux netstat command and route command.

Using Linux
Step by step on install configure manage and using Linux Fedora on clients server computer presented with screenshots examples.

Linux Network
Step by step Install Setup and Configure Linux Fedora Core Server and Network Management with Screen Shot and Example. Access Samba share from Windows 2000 or Windows XP computer.

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ... Page 2 of 8

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server Configuration. Apache Web Server Setup and Configuration on Fedora Core Server. Basic Setup SSH Server on Fedora. Check Ethernet NIC Driver on Linux Fedora using dmesg Configure Enable wget Download Through Proxy Server on Linux Fedora Configure NFS server and Configure NFS client - Network File System. Configure Squid to block HTTP request to specific web sites. Configure and Setup Squid Cache Proxy Server on Fedora Core. Create User Web Directory on Fedora using Apache Web Server. Create first web page on Fedora Core Web Server. Delete Remove Clear Squid Cache on Linux Fedora Enable yum update through proxy server on Linux Fedora Example of samba smbpasswd file and samba smbusers configuration file. Fedora Core DNS Server using BIND Linux Server Configuration. Fedora Core Linux Network Management file and config. Fedora Core Send Mail Server Construction - Linux Server Configuration.

1. Display or view routing table. 2. Add or change default route.

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ... Page 3 of 8

Fedora Core Telnet, Rlogin and Ftp Server Configuration. Fedora install caching dns server Linux Fedora configure Caching Dns Server caching nameserver PHP installation, configuration and information on fedora Core. Samba server smb.conf configuration file. Setup and configure NIS server and NIS client on Fedora Core Linux operating system. Squid Block IP Address Squid Enable FTP on Squid Proxy in Linux Fedora 10 Start Stop Network Device eth0 on Linux Fedora using service Command Step by Step Clear Squid Cache SELinux Enable Linux Fedora Step by Step How to Check Squid Cache Size on Linux Fedora 10 Step by Step Install Apache Httpd Web Server on Fedora 11 Step by Step Install Squid Proxy Server on CentOS using yum install Step by Step Install Squid Proxy Server on Fedora 11 Understand and Monitor Squid Access Log File access.log Uninstall Squid Proxy Server CentOS Using and Configure Samba Server with system-configsamba Graphical Configuration Tool on Fedora. View and Check Who Login on SHH Server

3. Add static route. 4. Add permanent (persistent) static routing.

Step-by-step how to display or view routing table on Linux Fedora Core machine.
Using Linux 'netstat' command to display or view kernel IP routing table. [root@linux hack]# netstat -r Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 203.106.93.64 * 255.255.255.224 U 0 0 0 eth0 10.2.0.0 * 255.255.0.0 U 0 0 0 eth1 10.3.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.6.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.7.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.4.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.5.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.10.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.8.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 10.9.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 default 203.106.93.93 0.0.0.0 UG 0 0 0 eth0 [root@linux hack]# netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 203.106.93.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 10.2.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 10.3.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.6.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.7.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.4.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.5.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.10.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.8.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 10.9.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 0.0.0.0 203.106.93.93 0.0.0.0 UG 0 0 0 eth0 Using Linux 'route' command to display kernel IP routing table. [root@linux hack]# /sbin/route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 203.106.93.64 * 255.255.255.224 U 0 0 0 eth0 10.2.0.0 * 255.255.0.0 U 0 0 0 eth1 10.3.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.6.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.7.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.4.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.5.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ... Page 4 of 8

named example for Linux Fedora 15 dns caching nameserver named.conf example for Linux Fedora 15 dns caching nameserver

10.10.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 10.8.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 10.9.0.0 10.2.0.2 255.255.0.0 UG 0 0 0 eth1 default 203.106.93.93 0.0.0.0 UG 0 0 0 eth0

Linux Tools
List of graphical Linux tools for system administration and system configuration available on Fedora Core operating system. Using YUM Install and Manage Software on Fedora

Step-by-step how to add/change default route on Linux Fedora Core machine.


You can add default route on your Linux machine by using route command. [root@linux hack]# route add default gw 10.10.0.1 eth0 Add or edit the default gateway on /etc/sysconfig/network file, to make sure your default is preserve after your system boot. Configuration example on network file: NETWORKING=yes

Using Windows
Guide on install using and configure Microsoft Windows operating system on PC and server computer with screenshot example.

HOSTNAME=fedora.hacking.com GATEWAY=203.106.93.93 Or you can place the (# route add default gw 10.10.0.1 eth0) command to the rc.local script file. This rc.local script file is located under /etc/rc.d/rc.local. This rc.local script file are design to run at the end of each boot time.

Download
Download Linux Fedora Core screenshot Windows XP Windows 2000 screenshot.

Step-by-step how to add static route on Linux Fedora Core machine.


The route add command below show the example to add network and host to the routing table. [root@linux hack]# route add -net 10.1.0.0 netmask 255.255.0.0

Screenshots
Step by Step Fedora Installation Screenshot. Step by step Windows Screenshot.

gw 10.2.0.1 eth0 [root@linux hack]# route add -host 10.10.0.5 netmask 255.255.0.0 gw 10.2.0.1 eth0 To verify the current change to the routing table, execute the route

Miscellaneous
Hardware Software Setting and Configuration that wont fit into Linux and Windows category.

command without any option. The example below show the command to remove or delete routing form routing table. [root@linux hack]# route del -net 10.1.0.0 netmask 255.255.0.0 gw 10.2.0.1 eth0

Site Map
Site Map.

[root@linux hack]# route del -host 10.10.0.5 netmask 255.255.0.0 gw 10.2.0.1 eth0

Recent article
Linux check hard disk size command

4. Step-by-step how to add route permanent ( persistent ) on Linux Fedora Core machine.

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ... Page 5 of 8

named.conf example for Linux Fedora 15 dns caching nameserver named example for Linux Fedora 15 dns caching nameserver Linux Fedora configure Caching Dns Server caching nameserver Fedora install caching dns server

To make route permanent (persistent as on Windows machine) on Linux Fedora Core machine, place the route add command to the rc.local script file. This rc.local script file is located under /etc/rc.d/rc.local. The rc.local script file are design to run at the end of each boot time. Configuration example on rc.local script file: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local route add default gw 10.10.0.1 eth0 route add -net 10.1.0.0 netmask 255.255.0.0 gw 10.2.0.1 eth0 or

Recent comments
3 days 14 hours ago 3 days 14 hours ago about https://facebook.com ? 1 week 14 hours ago How to delete the files, that 1 week 1 day ago very easy to understand - i 1 week 4 days ago not able to access google through squin in windows 2003 Server 2 weeks 20 min ago reset the root password 2 weeks 1 day ago Unable to block miniclip.com 2 weeks 3 days ago nice 2 weeks 6 days ago Lier 3 weeks 17 hours ago

Using the Network Graphical User Interface to adding permanents / persistent route to Linux fedora Core machine.
1. Open Network GUI interface: [root@linux hack]# /usr/bin/system-config-network-gui & 2. Select and highlight the network interface card on the Devices tab, in this example eth0

3. On the Network Configuration menu, click the properties for Ethernet Device.

button to edit the

4. On the Ethernet Device screen, click on the Route tab.

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ... Page 6 of 8

5. Click [ Add ] button to add static network routes to your Linux Fedora Core machine.

Note: Example above show route network address is 10.10.0.0, the subnet mask is 255.255.0.0 and the gateway is 10.2.0.2 Step-by-step how to procedure above tested on: Operating System: GNU/Linux Fedora Core 4 Kernel Name: Linux Kernel Release: 2.6.11-1.1369_FC4 Kernel Version: #1 Thu Jun 2 22:55:56 EDT 2005 Machine Hardware: i686 Machine Processor: i686 Hardware Platform: i386 Shell: GNU bash, version 3.00.16(1)-release (i386-redhat-linux-gnu) Installation Type: Full Installation (Custom) SELinux: Disable Keywords: display routing table, configure static route, add persistent route, add route, add static network routes, edit routing table, route, static route, configure route Linux, netstat command, route command, configure network route, Fedora Core route, network configuration. Bookmark/Search this post with

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ... Page 7 of 8

83494 reads

Email this page

Post new comment


Your name: *

E-mail: *
The content of this field is kept private and will not be shown publicly.

Homepage:

Subject:

Comment: *

By submitting this form, you accept the Mollom privacy policy.

Save

Preview

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server ... Page 8 of 8

Popular content
Today's:
Copy Linux Files and Copy Directory Using cp Command - Linux Basic Command. Permanently Change Hostname on Fedora Check Shell Type Currently Use and Check Shell Version on Linux Fedora Using and Configure Samba Server with system-config-samba Graphical Configuration Tool on Fedora. Example of samba smbpasswd file and samba smbusers configuration file.

Search
Custom Search

Home | Linux Commands | Using Linux | Linux Network | Linux Tools | Windows | Fedora screenshots | Windows screenshots | Miscellaneous | Download | SiteMap The labtestproject.com and site owner shall not be liable for any loss or damage caused by the usage of any information obtained from this web site. Companies referred to in this web site shall not be construed as agents nor as companies recommended by the labtestproject.com and the site owner. Copyright LabTestProject.com 2011, All Rights Reserved.

http://www.labtestproject.com/linnet/routing.html

10/21/2011

Vous aimerez peut-être aussi