SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Linux Redhat
Network
Configuration
ifconfig
Ifconfig or ifconfig -a
#Ifconfig eth0 down
     #Ifconfig eth0 up
     ==
     #service network restart
   To configure a static IP:
#ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast
192.168.10.255 up
Default route(Default Gateway)

# route add default gw {IP-ADDRESS} {INTERFACE-NAME}
#route add default gw 192.168.1.254 eth0
static route
#ip route show this is a command to show you the default gateway
and the ip
You can add static route using following command:
#ip route add {NETWORK} via {IP} dev {DEVICE}
For example network 192.168.55.0/24 available via
192.168.1.254:
# ip route add 192.168.55.0/24 via 192.168.1.254 dev eth1


Alternatively, you can use old good route command:
# route add -net 192.168.55.0 netmask 255.255.255.0 gw
192.168.1.254 dev eth1
Network Configuration Files
/etc/hosts
The main purpose of this file is to resolve hostnames that cannot be resolved
any other way. It can also be used to resolve hostnames on small networks
with no DNS server.


/etc/resolv.conf
This file specifies the IP addresses of DNS servers and the search domain.


/etc/sysconfig/network
This file specifies routing and host information for all network interfaces.


/etc/sysconfig/network-scripts/ifcfg-<interface-name>
For each network interface, there is a corresponding interface configuration
script. Each of these files provide information specific to a particular
network interface.
/etc/sysconfig/network

The /etc/sysconfig/network file is used to specify information about the desired
network configuration. The following values may be used:



• NETWORKING=<value>, where <value> is one of the following boolean values:
yes — Networking should be configured.
no — Networking should not be configured.


• HOSTNAME=<value>, where <value> should be the Fully Qualified Domain
Name (FQDN), such as hostname.expample.com, but can be whatever
hostname is necessary.

• GATEWAY=<value>, where <value> is the IP address of the network's gateway.
/etc/sysconfig/network
Static IP address Configuration: (Configure gateway address)


NETWORKING=yes
HOSTNAME=my-hostname -Hostname is defined here and by command hostname
GATEWAY="XXX.XXX.XXX.YYY" - Used if your network is connected to another
                            network or the internet.



OR for DHCP client configuration:
NETWORKING=yes
HOSTNAME=my-hostname - Hostname is defined here and by command
hostname
/etc/sysconfig/network-scripts/ifcfg-
<interface-name>
The following is a sample ifcfg-eth0 file for a system using a FIXED
IP address:

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=no

Example, using DHCP server:

# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=08:00:27:FF:FB:FE
ONBOOT=yes
Below is a listing of the configurable
parameters in an Ethernet interface
configuration file:
/etc/sysconfig/network-scripts/ifcfg-<interface-
name>
BOOTPROTO=<protocol>
where <protocol> is one of the following:
• none — No boot-time protocol should be used.
• bootp — The BOOTP protocol should be used.
• dhcp — The DHCP protocol should be used.


DEVICE=<name>
where <name> is the name of the physical device (except for
dynamically-allocated PPP devices
where it is the logical name).



DNS{1,2}=<address>
where <address> is a name server address to be placed in
/etc/resolv.conf if the
PEERDNS directive is set to yes.
GATEWAY=<address>
where <address> is the IP address of the network router or gateway device
(if any).


HWADDR=<MAC-address>
where <MAC-address> is the hardware address of the Ethernet device in the
form
AA:BB:CC:DD:EE:FF. This directive must be used in machines containing
more than one NIC to ensure that the interfaces are assigned the correct
device names regardless of the configured load order for each NIC's
module. This directive should not be used in conjunction with MACADDR.



IPADDR=<address>
where <address> is the IP address.

NETMASK=<mask>
where <mask> is the netmask value.
ONBOOT=<answer>
where <answer> is one of the following:
• yes — This device should be activated at boot-time.
• no — This device should not be activated at boot-time.




USERCTL=<answer>
where <answer> is one of the following:
• yes — Non-root users are allowed to control this device.
• no — Non-root users are not allowed to control this device.
/etc/sysconfig/static-routes

You can add the following two lines to the file
"/etc/sysconfig/static-routes":

eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
eth1 net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.2
Network Administration Tool
The Network Administration Tool (system-config-network) is
an easy way to make changes to the various network
interface configuration files

Pg 159


 #system-config-network
1. Add a network device associated with the physical
   hardware device.

2. Configure the hostname and DNS settings.

3. Configure any hosts that cannot be looked up through
DNS.
DHCP configuration
1. Backup existing static configuration
• First backup existing network configuration file
   using cp command:
   # cp /etc/sysconfig/network-scripts/ifcfg-eth0
   /root/ifcfg-eth0.bak
2. Configuring a DHCP Client:
• Setting up a Linux for dhcp can be done by editing file using a
  text editor such as vi:
  # vi /etc/sysconfig/network-scripts/ifcfg-eth0
DHCP configuration
• Following is sample static configuration:
  DEVICE=eth0
  BOOTPROTO=static
  HWADDR=00:19:D1:2A:BA:A8
  IPADDR=10.10.29.66
  NETMASK=255.255.255.192
  ONBOOT=yes
DHCP configuration
3. Replace static configuration with DHCP:
  DEVICE=eth0
  BOOTPROTO=dhcp
  HWADDR=00:19:D1:2A:BA:A8
  ONBOOT=yes
4. Save and close the file. Just restart network
  service:
  # /etc/init.d/network restart (in ubuntu the service is
  called networking)
  Please note that you need a configuration file for each device
  that you want to configure to use DHCP.

Weitere ähnliche Inhalte

Was ist angesagt?

Ict 9 module 3, lesson 2.5 basic computer configuration setup
Ict 9 module 3, lesson 2.5 basic computer configuration setupIct 9 module 3, lesson 2.5 basic computer configuration setup
Ict 9 module 3, lesson 2.5 basic computer configuration setupYonel Cadapan
 
Networking Chapter 6
Networking Chapter 6Networking Chapter 6
Networking Chapter 6mlrbrown
 
TLE 10 (ICT): Basic Concepts on Computer Networks
TLE 10 (ICT): Basic Concepts on Computer NetworksTLE 10 (ICT): Basic Concepts on Computer Networks
TLE 10 (ICT): Basic Concepts on Computer NetworksRomne Ryan Portacion
 
peer to peer and client server model
peer to peer and client server modelpeer to peer and client server model
peer to peer and client server modelBharath Nair
 
How to prepare a portable bootable devices
How to prepare a portable bootable devicesHow to prepare a portable bootable devices
How to prepare a portable bootable devicesiankeithsomoza
 
Setting up a network
Setting up a networkSetting up a network
Setting up a networkRachel Espino
 
Bios and cmos
Bios and cmosBios and cmos
Bios and cmosOnline
 
Basics of IP Addressing
Basics of IP AddressingBasics of IP Addressing
Basics of IP AddressingKushal Sheth
 
Network operating systems
Network operating systems Network operating systems
Network operating systems Sachin Awasthi
 
Network Interface Card
Network Interface CardNetwork Interface Card
Network Interface Cardsourabh4u07
 
Computer Hardware: Parts & Functions
Computer Hardware: Parts & FunctionsComputer Hardware: Parts & Functions
Computer Hardware: Parts & FunctionsRay Monterola
 
Sag computer system servicing nc ii
Sag   computer system servicing nc iiSag   computer system servicing nc ii
Sag computer system servicing nc iiDelfino Santos
 
Ch 2 computer assembly disassembly
Ch 2 computer  assembly disassemblyCh 2 computer  assembly disassembly
Ch 2 computer assembly disassemblymekashaw tizazu
 
Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1Abdul Basit
 

Was ist angesagt? (20)

Router configuration
Router configurationRouter configuration
Router configuration
 
Ict 9 module 3, lesson 2.5 basic computer configuration setup
Ict 9 module 3, lesson 2.5 basic computer configuration setupIct 9 module 3, lesson 2.5 basic computer configuration setup
Ict 9 module 3, lesson 2.5 basic computer configuration setup
 
Networking Chapter 6
Networking Chapter 6Networking Chapter 6
Networking Chapter 6
 
Peer to-peer networks
Peer to-peer networksPeer to-peer networks
Peer to-peer networks
 
TLE 10 (ICT): Basic Concepts on Computer Networks
TLE 10 (ICT): Basic Concepts on Computer NetworksTLE 10 (ICT): Basic Concepts on Computer Networks
TLE 10 (ICT): Basic Concepts on Computer Networks
 
peer to peer and client server model
peer to peer and client server modelpeer to peer and client server model
peer to peer and client server model
 
How to prepare a portable bootable devices
How to prepare a portable bootable devicesHow to prepare a portable bootable devices
How to prepare a portable bootable devices
 
Setting up a network
Setting up a networkSetting up a network
Setting up a network
 
File & Printer Sharing
File & Printer SharingFile & Printer Sharing
File & Printer Sharing
 
Bios and cmos
Bios and cmosBios and cmos
Bios and cmos
 
Basics of IP Addressing
Basics of IP AddressingBasics of IP Addressing
Basics of IP Addressing
 
Network operating systems
Network operating systems Network operating systems
Network operating systems
 
Network Interface Card
Network Interface CardNetwork Interface Card
Network Interface Card
 
Soft wares
Soft waresSoft wares
Soft wares
 
Computer Hardware: Parts & Functions
Computer Hardware: Parts & FunctionsComputer Hardware: Parts & Functions
Computer Hardware: Parts & Functions
 
Bios
BiosBios
Bios
 
Sag computer system servicing nc ii
Sag   computer system servicing nc iiSag   computer system servicing nc ii
Sag computer system servicing nc ii
 
Ch 2 computer assembly disassembly
Ch 2 computer  assembly disassemblyCh 2 computer  assembly disassembly
Ch 2 computer assembly disassembly
 
Computer Network
Computer NetworkComputer Network
Computer Network
 
Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1
 

Andere mochten auch

Configuration and testing of network
Configuration and testing of networkConfiguration and testing of network
Configuration and testing of networkKak Yong
 
Networking devices
Networking devicesNetworking devices
Networking devicesrupinderj
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer NetworkingHj Habib
 
NETWORK TOPOLOGY
NETWORK TOPOLOGYNETWORK TOPOLOGY
NETWORK TOPOLOGYKak Yong
 
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And SoftwareSteven Cahill
 
Distribution network reconfiguration for loss reduction and voltage
Distribution network reconfiguration for loss reduction and voltageDistribution network reconfiguration for loss reduction and voltage
Distribution network reconfiguration for loss reduction and voltageGaddafi Sani
 
Computer networking devices
Computer networking devicesComputer networking devices
Computer networking devicesRajesh Sadhukha
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS Kak Yong
 
Lan configuration in windows Server 2008 R2 part 01
Lan configuration in windows Server 2008 R2 part 01Lan configuration in windows Server 2008 R2 part 01
Lan configuration in windows Server 2008 R2 part 01naveenmcitp.india.nk
 
Windows server 2008 step by-step guide for dns in small networks
Windows server 2008 step by-step guide for dns in small networksWindows server 2008 step by-step guide for dns in small networks
Windows server 2008 step by-step guide for dns in small networksOchiroo Dorj
 
PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA Kak Yong
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commandsHanan Nmr
 
Firewall presentation
Firewall presentationFirewall presentation
Firewall presentationAmandeep Kaur
 
Network ppt
Network pptNetwork ppt
Network ppthlalu861
 
Introduction to computer network
Introduction to computer networkIntroduction to computer network
Introduction to computer networkAshita Agrawal
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commandsAniket Thakur
 
Customization swatch bharat cess
Customization  swatch bharat cessCustomization  swatch bharat cess
Customization swatch bharat cessmbraghumb
 

Andere mochten auch (20)

Configuration and testing of network
Configuration and testing of networkConfiguration and testing of network
Configuration and testing of network
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer Networking
 
NETWORK TOPOLOGY
NETWORK TOPOLOGYNETWORK TOPOLOGY
NETWORK TOPOLOGY
 
Networking
NetworkingNetworking
Networking
 
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And Software
 
Networking ppt
Networking ppt Networking ppt
Networking ppt
 
Distribution network reconfiguration for loss reduction and voltage
Distribution network reconfiguration for loss reduction and voltageDistribution network reconfiguration for loss reduction and voltage
Distribution network reconfiguration for loss reduction and voltage
 
Computer networking devices
Computer networking devicesComputer networking devices
Computer networking devices
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS
 
Lan configuration in windows Server 2008 R2 part 01
Lan configuration in windows Server 2008 R2 part 01Lan configuration in windows Server 2008 R2 part 01
Lan configuration in windows Server 2008 R2 part 01
 
Windows server 2008 step by-step guide for dns in small networks
Windows server 2008 step by-step guide for dns in small networksWindows server 2008 step by-step guide for dns in small networks
Windows server 2008 step by-step guide for dns in small networks
 
PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commands
 
P1111143901
P1111143901P1111143901
P1111143901
 
Firewall presentation
Firewall presentationFirewall presentation
Firewall presentation
 
Network ppt
Network pptNetwork ppt
Network ppt
 
Introduction to computer network
Introduction to computer networkIntroduction to computer network
Introduction to computer network
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Customization swatch bharat cess
Customization  swatch bharat cessCustomization  swatch bharat cess
Customization swatch bharat cess
 

Ähnlich wie Network configuration

Unit 9 basic system configuration tools
Unit 9 basic system configuration toolsUnit 9 basic system configuration tools
Unit 9 basic system configuration toolsroot_fibo
 
Arp Dan Ipconfig Syntax
Arp Dan Ipconfig  SyntaxArp Dan Ipconfig  Syntax
Arp Dan Ipconfig Syntaxguestcc37e8c
 
configure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdfconfigure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdfHussein Younis
 
Automating everything with PowerShell, Terraform, and AWS
Automating everything with PowerShell, Terraform, and AWSAutomating everything with PowerShell, Terraform, and AWS
Automating everything with PowerShell, Terraform, and AWSChris Brown
 
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCPKonfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCPWalid Umar
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_trainingvideos
 
Components of computer systems often have dependencies--other co.pdf
Components of computer systems often have dependencies--other co.pdfComponents of computer systems often have dependencies--other co.pdf
Components of computer systems often have dependencies--other co.pdfalamodeindia1
 
Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Henning Sprang
 

Ähnlich wie Network configuration (20)

Unit 9 basic system configuration tools
Unit 9 basic system configuration toolsUnit 9 basic system configuration tools
Unit 9 basic system configuration tools
 
Arp Dan Ipconfig Syntax
Arp Dan Ipconfig  SyntaxArp Dan Ipconfig  Syntax
Arp Dan Ipconfig Syntax
 
Dhcp confg
Dhcp confgDhcp confg
Dhcp confg
 
Vpn addind technique
Vpn addind techniqueVpn addind technique
Vpn addind technique
 
configure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdfconfigure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdf
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
 
Lession4 Dhcp
Lession4 DhcpLession4 Dhcp
Lession4 Dhcp
 
Dhcp
DhcpDhcp
Dhcp
 
Automating everything with PowerShell, Terraform, and AWS
Automating everything with PowerShell, Terraform, and AWSAutomating everything with PowerShell, Terraform, and AWS
Automating everything with PowerShell, Terraform, and AWS
 
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCPKonfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
Konfigurasi Server Gateway dengan fitur PROXY, WEBSERVER dan DHCP
 
CN 1.docx
CN 1.docxCN 1.docx
CN 1.docx
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
 
nwlab-ex1.pdf
nwlab-ex1.pdfnwlab-ex1.pdf
nwlab-ex1.pdf
 
Components of computer systems often have dependencies--other co.pdf
Components of computer systems often have dependencies--other co.pdfComponents of computer systems often have dependencies--other co.pdf
Components of computer systems often have dependencies--other co.pdf
 
Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...Automatic systems installations and change management wit FAI - Talk for Netw...
Automatic systems installations and change management wit FAI - Talk for Netw...
 
5 - Networking in Red Hat
5 - Networking in Red Hat5 - Networking in Red Hat
5 - Networking in Red Hat
 
Rhel3
Rhel3Rhel3
Rhel3
 
Modul server debian 5
Modul server debian 5Modul server debian 5
Modul server debian 5
 
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
 
main
mainmain
main
 

Kürzlich hochgeladen

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Kürzlich hochgeladen (20)

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Network configuration

  • 3. #Ifconfig eth0 down #Ifconfig eth0 up == #service network restart To configure a static IP: #ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255 up
  • 4. Default route(Default Gateway) # route add default gw {IP-ADDRESS} {INTERFACE-NAME} #route add default gw 192.168.1.254 eth0
  • 5. static route #ip route show this is a command to show you the default gateway and the ip You can add static route using following command: #ip route add {NETWORK} via {IP} dev {DEVICE} For example network 192.168.55.0/24 available via 192.168.1.254: # ip route add 192.168.55.0/24 via 192.168.1.254 dev eth1 Alternatively, you can use old good route command: # route add -net 192.168.55.0 netmask 255.255.255.0 gw 192.168.1.254 dev eth1
  • 7. /etc/hosts The main purpose of this file is to resolve hostnames that cannot be resolved any other way. It can also be used to resolve hostnames on small networks with no DNS server. /etc/resolv.conf This file specifies the IP addresses of DNS servers and the search domain. /etc/sysconfig/network This file specifies routing and host information for all network interfaces. /etc/sysconfig/network-scripts/ifcfg-<interface-name> For each network interface, there is a corresponding interface configuration script. Each of these files provide information specific to a particular network interface.
  • 8. /etc/sysconfig/network The /etc/sysconfig/network file is used to specify information about the desired network configuration. The following values may be used: • NETWORKING=<value>, where <value> is one of the following boolean values: yes — Networking should be configured. no — Networking should not be configured. • HOSTNAME=<value>, where <value> should be the Fully Qualified Domain Name (FQDN), such as hostname.expample.com, but can be whatever hostname is necessary. • GATEWAY=<value>, where <value> is the IP address of the network's gateway.
  • 9. /etc/sysconfig/network Static IP address Configuration: (Configure gateway address) NETWORKING=yes HOSTNAME=my-hostname -Hostname is defined here and by command hostname GATEWAY="XXX.XXX.XXX.YYY" - Used if your network is connected to another network or the internet. OR for DHCP client configuration: NETWORKING=yes HOSTNAME=my-hostname - Hostname is defined here and by command hostname
  • 10. /etc/sysconfig/network-scripts/ifcfg- <interface-name> The following is a sample ifcfg-eth0 file for a system using a FIXED IP address: DEVICE=eth0 BOOTPROTO=none ONBOOT=yes NETWORK=10.0.1.0 NETMASK=255.255.255.0 IPADDR=10.0.1.27 USERCTL=no Example, using DHCP server: # Intel Corporation 82540EM Gigabit Ethernet Controller DEVICE=eth0 BOOTPROTO=dhcp HWADDR=08:00:27:FF:FB:FE ONBOOT=yes
  • 11. Below is a listing of the configurable parameters in an Ethernet interface configuration file: /etc/sysconfig/network-scripts/ifcfg-<interface- name>
  • 12. BOOTPROTO=<protocol> where <protocol> is one of the following: • none — No boot-time protocol should be used. • bootp — The BOOTP protocol should be used. • dhcp — The DHCP protocol should be used. DEVICE=<name> where <name> is the name of the physical device (except for dynamically-allocated PPP devices where it is the logical name). DNS{1,2}=<address> where <address> is a name server address to be placed in /etc/resolv.conf if the PEERDNS directive is set to yes.
  • 13. GATEWAY=<address> where <address> is the IP address of the network router or gateway device (if any). HWADDR=<MAC-address> where <MAC-address> is the hardware address of the Ethernet device in the form AA:BB:CC:DD:EE:FF. This directive must be used in machines containing more than one NIC to ensure that the interfaces are assigned the correct device names regardless of the configured load order for each NIC's module. This directive should not be used in conjunction with MACADDR. IPADDR=<address> where <address> is the IP address. NETMASK=<mask> where <mask> is the netmask value.
  • 14. ONBOOT=<answer> where <answer> is one of the following: • yes — This device should be activated at boot-time. • no — This device should not be activated at boot-time. USERCTL=<answer> where <answer> is one of the following: • yes — Non-root users are allowed to control this device. • no — Non-root users are not allowed to control this device.
  • 15. /etc/sysconfig/static-routes You can add the following two lines to the file "/etc/sysconfig/static-routes": eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1 eth1 net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.2
  • 16. Network Administration Tool The Network Administration Tool (system-config-network) is an easy way to make changes to the various network interface configuration files Pg 159 #system-config-network
  • 17.
  • 18. 1. Add a network device associated with the physical hardware device. 2. Configure the hostname and DNS settings. 3. Configure any hosts that cannot be looked up through DNS.
  • 19. DHCP configuration 1. Backup existing static configuration • First backup existing network configuration file using cp command: # cp /etc/sysconfig/network-scripts/ifcfg-eth0 /root/ifcfg-eth0.bak 2. Configuring a DHCP Client: • Setting up a Linux for dhcp can be done by editing file using a text editor such as vi: # vi /etc/sysconfig/network-scripts/ifcfg-eth0
  • 20. DHCP configuration • Following is sample static configuration: DEVICE=eth0 BOOTPROTO=static HWADDR=00:19:D1:2A:BA:A8 IPADDR=10.10.29.66 NETMASK=255.255.255.192 ONBOOT=yes
  • 21. DHCP configuration 3. Replace static configuration with DHCP: DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:19:D1:2A:BA:A8 ONBOOT=yes 4. Save and close the file. Just restart network service: # /etc/init.d/network restart (in ubuntu the service is called networking) Please note that you need a configuration file for each device that you want to configure to use DHCP.