Linux TCP/IP Network Management



Similar documents
Network Management and Debugging. Jing Zhou

Linux Networking. How Networking Works Configuring Networking in Linux Using redhat-config-network Network debugging Wireless networking IPv6

Introduction to NetGUI

Workshop on Scientific Applications for the Internet of Things (IoT) March

BASIC TCP/IP NETWORKING

netkit lab single-host Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

This howto is also a bit old now. But I thought of uploading it in the howtos section, as it still works.

TCP/IP Network Essentials. Linux System Administration and IP Services

VM-Series Firewall Deployment Tech Note PAN-OS 5.0

HIGH AVAILABILITY (HA) WITH OPENSIPS

Written by Saif ur Rab Monday, 07 December :19 - Last Updated Monday, 27 December :19

IP network tools & troubleshooting. AFCHIX 2010 Nairobi, Kenya October 2010

How To Install Openstack On Ubuntu (Amd64)

bigbluebutton Open Source Web Conferencing

Red Hat Linux Networking

McAfee Asset Manager Sensor

CELLTRACKS ANALYZER II. Networking Guide J40169EN

netkit lab static-routing Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With Perlbal/Heartbeat On Debian Etch

Network Diagnostic Tools. Jijesh Kalliyat Sr.Technical Account Manager, Red Hat 15th Nov 2014

Note: Guide not yet tested in the SFU Surrey Linux Lab (SUR4080). Some changes may be needed.

Homework 3 TCP/IP Network Monitoring and Management

Virtual Systems with qemu

Version Author(s) Web Description

VoIP Laboratory B How to re flash an IP04

1.0 Basic Principles of TCP/IP Network Communications

Hands On Activities: TCP/IP Network Monitoring and Management

CS244A Review Session Routing and DNS

3. The Domain Name Service

Home Linux Networking Lab (202) This Howto shows how to recreate the CIS Lab environment at home.

Guide to IP Layer Network Administration with Linux

High Availability in Linux Firewalls using VRRP

L3DSR Overcoming Layer 2 Limitations of Direct Server Return Load Balancing

TCP/IP Configuration and DHCP Configuration For Red Hat Linux 9 (RHL9) Presentation Report

A virtual network laboratory for learning IP networking

XV0500 Video MCU User's Guide

Host Configuration (Linux)

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Troubleshooting Tools

Twin Peaks Software High Availability and Disaster Recovery Solution For Linux Server

Wireless LAN Apple Bonjour Deployment Guide

Deploying Samba in IPv6 Networks

pp=pod number, xxx=static IP address assigned to your pod

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Get quick control over your Linux server with server commands

What information you will find in this document

Advanced SSH Tunneling by Bill Brassfield, Dev Ops Technical Consultant, Taos

iproute2 and Advanced Linux Routing

IP Address: the per-network unique identifier used to find you on a network

Cloud Storage Quick Start Guide

4.3 Where Data is Stored. Description Where various types of information are stored on a Linux system. Key Knowledge Areas

Canopy Wireless Broadband Platform

LAB THREE STATIC ROUTING

using routing domains / routing tables in a production network

Guideline for setting up a functional VPN

Network Configuration

Technical Support Information Belkin internal use only

Quick Note 53. Ethernet to W-WAN failover with logical Ethernet interface.

Procédure installation Open VPN sur Xivo

Network Interface Failover using FONA

IT Essentials II: Network Operating Systems V 3.0

Forensic Network Analysis Tools

VLAN for DekTec Network Adapters

1 PC to WX64 direction connection with crossover cable or hub/switch

OpenCPN Garmin Radar Plugin

Comodo MyDLP Software Version 2.0. Installation Guide Guide Version Comodo Security Solutions 1255 Broad Street Clifton, NJ 07013

Lab 1: Introduction to the network lab

3.1 RS-232/422/485 Pinout:PORT1-4(RJ-45) RJ-45 RS-232 RS-422 RS-485 PIN1 TXD PIN2 RXD PIN3 GND PIN4 PIN5 T PIN6 T PIN7 R+ PIN8 R-

Packet Filtering Firewall

Packet filtering with Linux

Linux Networking. Paul Cobbaut

User s Manual TCP/IP TO RS-232/422/485 CONVERTER. 1.1 Introduction. 1.2 Main features. Dynamic DNS

Lab Objectives & Turn In

Instructor Notes for Lab 3

Semantic based Web Application Firewall (SWAF - V 1.6)

Server configuration for layer 4 DSR mode

ZCP trunk (build 50384) Zarafa Collaboration Platform. Zarafa HA Manual

IPv6.marceln.org.

Using Hobbit to Monitor Network Services

Sample Configuration Using the ip nat outside source list C

Lab 5 Explicit Proxy Performance, Load Balancing & Redundancy

netkit lab two-hosts Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Tcpdump Lab: Wired Network Traffic Sniffing

CONFIGURATION MANUAL. for v2 routers

Technote: AIX EtherChannel Load Balancing Options

Part A:Background/Preparation

User s Manual. 10/100/1000Base-T PCI Express Gigabit Ethernet Adapter. ENW-9702

How to Turn a Unix Computer into a Router and Firewall Using IPTables

Change Log. 2 per vices corporation

Setting up WiFi with BeagleBone Black

Getting started with ARM-Linux

Configuring PPPoE. PPPoE server configuration

The Barracuda Network Connector. System Requirements. Barracuda SSL VPN

Transcription:

Linux TCP/IP Network Management Arnon Rungsawang fenganr@ku.ac.th Massive Information & Knowledge Engineering Department of Computer Engineering Faculty of Engineering Kasetsart University, Bangkok, Thailand.

Outline Why we need to know? Install more than one Ethernet card per machine. Files related to networking functionality. Configure TCP/IP networking manually with the command line. 2

Why we need to know? Linux is one of the best existing operating systems in the world for networking features. Understanding your hardware network and all files related to it is very important if you want to have a full control of what happens on your server. 3

Install more than one Ethernet card per machine Why do we need more than one Ethernet card? Use Linux as a gateway between two networks Should specify the parameters of the two card somewhere? The lilo.conf file for a monolithic kernel. The conf.modules file for a modularized kernel. 4

The /etc/conf.modules Install more than one Ethernet card per machine For PCI cards, the module will typically detect all of the installed cards automatically. For ISA cards, we need to supply the I/O base address if the card in /etc/conf.modules file. 5

Install more than one Ethernet card per machine The /etc/conf.modules (2) Example: we have two 3c509 cards, one at I/O 0x300 and the other at I/O 0x320. For ISA cards, edit the conf.modules and add: alias eth0 3c905 alias eth1 3c905 options 3c905 io=0x300,0x320 For PCI cards, only need the alias line, since the I/O base can be safely detected. alias eth0 3c905 alias eth1 3c905 6

The /etc/lilo.conf Linux TCP/IP Network Management Install more than one Ethernet card per machine In some circumstance ISA cards need to add some explicit information in the /etc/lilo.conf file, the method is to pass boot-time arguments to the kernel. boot=/dev/hda map=/boot/map install=/boot/boot.b prompt timeout=50 default=linux image=/boot/vmlinuz-2.2.14-5.0 label=linux append= ether=0,0,eth1 root=/dev/hda2 read-only 7

Files related to network functionality TCP/IP network in Linux is configured through several text files. Normal server does not have Xwindow interface, so it s important to know how to configure network in text mode. 8

The /etc/hostname Linux TCP/IP Network Management Files related to network functionality Store your system s fully qualified domain name (FQDN). mike.cpe.ku.ac.th 9

Files related to network functionality The /etc/sysconfig/network-scripts/ifcfg-ethn Configuration file for each network device. DEVICE=eth0 BOOTPROTO=static IPADDR=158.108.33.97 NETMASK=255.255.255.192 ONBOOT=yes DEVICE=eth1 BOOTPROTO=static IPADDR=192.168.33.97 NETMASK=255.255.255.0 ONBOOT=yes 10

The /etc/sysconfig/network Files related to network functionality Specify information about the desired network configuration on your server. NETWORKING=yes HOSTNAME=mike.cpe.ku.ac.th GATEWAY=158.108.33.65 GATEWAYDEV=eth0 FORWARD_IPV4=yes 11

The /etc/sysctl.conf Linux TCP/IP Network Management Files related to network functionality The content of /etc/sysctl.conf is loaded at each boot to setup some network security parameters through kernel tunable parameters. # Enables packet forwarding net.ipv4.ip_forward = 1 # Enables source route verification net.ipv4.conf.default.rp_filter = 1 # Disables the magic-sysrq key kernel.sysrq = 0 12

The /etc/hosts Linux TCP/IP Network Management Files related to network functionality Mapping of some hostnames to IP addresses. #Windows machines 192.168.33.171 thor.cpe.ku.ac.th thor 192.168.33.172 nautilus.cpe.ku.ac.th nautilus 192.168.33.173 bucephalus.cpe.ku.ac.th bucephalus 192.168.33.174 louis.cpe.ku.ac.th louis 192.168.33.175 memepuppy.cpe.ku.ac.th memepuppy 192.168.33.176 tweetybird.cpe.ku.ac.th tweetybird 192.168.33.177 na.cpe.ku.ac.th na 192.168.33.178 jin.cpe.ku.ac.th jin 192.168.33.179 nun.cpe.ku.ac.th nun 192.168.33.180 lucifer.cpe.ku.ac.th lucifer #Another machines's IP is 180 up 192.168.33.185 tawa.cpe.ku.ac.th tawa #Aj.Arnan's IP is 200 up. MIKE don't use 192.168.33.230 anan.cpe.ku.ac.th anan 13

Configure TCP/IP networking manually with the command line To assign the eth0 interface the IP address of 192.168.33.116, use the command: [root@godzilla]# ifconfig eth0 192.168.33.116 netmask 255.255.255.0 To display all the interfaces you have on your server, use the command: [root@godzilla]# ifconfig eth0 Link encap:ethernet HWaddr 00:00:21:C5:59:4E inet addr:192.168.33.116 Bcast:192.168.33.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9122158 errors:0 dropped:0 overruns:0 frame:0 TX packets:10896451 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:10 Base address:0xd800 lo Link encap:local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:540932 errors:0 dropped:0 overruns:0 frame:0 TX packets:540932 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 14

Configure TCP/IP networking manually with the command line (2) To assign the default gateway for 192.168.33.65, use the command: [root@godzilla]# route add default gw 192.168.33.65 To verify that is can reach your host, use the command: [root@godzilla]# ping 192.168.33.65 PING 192.168.33.65 (192.168.33.65) from 192.168.33.116 : 56(84) bytes of data. 64 bytes from mozilla.cpe.ku.ac.th (192.168.33.65): icmp_seq=0 ttl=255 time=0.4 ms 64 bytes from mozilla.cpe.ku.ac.th (192.168.33.65): icmp_seq=1 ttl=255 time=0.2 ms To display the routing information, use the command: [root@godzilla]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface godzilla.cpe.ku * 255.255.255.255 UH 0 0 0 eth0 192.168.33.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default mozilla.cpe.ku. 0.0.0.0 UG 0 0 0 eth0 15

Configure TCP/IP networking manually with the command line (3) To check the status of the interface quickly, use the command: [root@godzilla]# netstat i Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth0 1500 0 9127220 0 0 0 10900792 0 0 0 BRU lo 3924 0 540932 0 0 0 540932 0 0 0 LRU To show all active TCP connections, use the command: [root@godzilla]# netstat t Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 godzilla.cpe.ku.:telnet mammoth.cpe.ku.ac.:2249 ESTABLISHED tcp 0 0 godzilla.cpe.ku.ac:1264 nontri.ku.ac.th:pop3 ESTABLISHED tcp 0 0 godzilla.cpe.ku.ac:1243 louis.cpe.ku.ac.th:6000 ESTABLISHED tcp 0 126 godzilla.cpe.ku.:telnet louis.cpe.ku.ac.th:1125 ESTABLISHED tcp 0 0 godzilla.cpe.ku.ac:1023 tutu.cpe.ku.ac.th:login ESTABLISHED tcp 0 0 godzilla.cpe.ku.:telnet mammoth.cpe.ku.ac.:1537 ESTABLISHED tcp 0 0 godzilla.cpe.ku.:telnet mammoth.cpe.ku.ac.:1514 ESTABLISHED 16

Configure TCP/IP networking manually with the command line (4) To show all active and listen TCP connections, use the command: [root@godzilla]# netstat vat Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 46 godzilla.cpe.ku.:telnet mammoth.cpe.ku.ac.:2249 ESTABLISHED tcp 0 0 godzilla.cpe.ku.ac:1264 nontri.ku.ac.th:pop3 ESTABLISHED tcp 0 0 godzilla.cpe.ku.ac:1243 louis.cpe.ku.ac.th:6000 ESTABLISHED tcp 0 138 godzilla.cpe.ku.:telnet louis.cpe.ku.ac.th:1125 ESTABLISHED tcp 0 0 *:11112 *:* LISTEN tcp 0 0 godzilla.cpe.ku.ac:1023 tutu.cpe.ku.ac.th:login ESTABLISHED tcp 0 0 *:11111 *:* LISTEN tcp 0 0 godzilla.cpe.ku.:telnet mammoth.cpe.ku.ac.:1537 ESTABLISHED tcp 0 0 godzilla.cpe.ku.:telnet mammoth.cpe.ku.ac.:1514 ESTABLISHED tcp 0 0 *:smtp *:* LISTEN tcp 0 0 *:kerberos4 *:* LISTEN tcp 0 0 *:745 *:* LISTEN tcp 0 0 *:swat *:* LISTEN 17

Any questions? 18