SlideShare a Scribd company logo
1 of 17
EXNO:12 NETWORKING AND INTERFACE
PROCEDURE:
1. To get the current user who logged in and to switch user
[admin@FossServer ~]$ whoami
admin
[admin@FossServer ~]$ su
Password:
[root@FossServer admin]# whoami
root
2. To set the IP addresss
[root@FossServer network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20
inet addr:172.16.121.45 Bcast:172.16.255.255
Mask:255.255.0.0
inet6 addr: fe80::e269:95ff:fe00:8920/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:11581 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1030758 (1006.5 KiB) TX bytes:7458 (7.2 KiB)
Interrupt:20 Memory:fe400000-fe420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB)
[root@FossServer network-scripts]# service NetworkManager status
NetworkManager (pid 2648) is running...
[root@FossServer network-scripts]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
[root@FossServer network-scripts]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB)
[root@FossServer network-scripts]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20
inet addr:172.16.121.45 Bcast:172.16.255.255
Mask:255.255.0.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:11765 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1048164 (1023.5 KiB) TX bytes:7458 (7.2 KiB)
Interrupt:20 Memory:fe400000-fe420000
[root@FossServer network-scripts]# service network status
Configured devices:
lo eth0
Currently active devices:
lo
[root@FossServer network-scripts]# service network stop
Shutting down loopback interface: [ OK ]
[root@FossServer network-scripts]# ifconfig
[root@FossServer network-scripts]# ifdown eth0
[root@FossServer network-scripts]# ifdown lo
[root@FossServer network-scripts]# ifconfig eth0 172.16.121.45
netmask 255.255.0.0 up
[root@FossServer network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20
inet addr:172.16.121.45 Bcast:172.16.255.255
Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:11992 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1068024 (1.0 MiB) TX bytes:8564 (8.3 KiB)
Interrupt:20 Memory:fe400000-fe420000
[root@FossServer network-scripts]# ifconfig lo
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB)
[root@FossServer network-scripts]# ifup lo
[root@FossServer network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20
inet addr:172.16.121.45 Bcast:172.16.255.255
Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:12352 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1100369 (1.0 MiB) TX bytes:8564 (8.3 KiB)
Interrupt:20 Memory:fe400000-fe420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB)
[root@FossServer network-scripts]#
3. To set the GATEWAY ip address
[root@FossServer network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
[root@FossServer network-scripts]# route add default gw
172.16.121.1
[root@FossServer network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 172.16.121.1 0.0.0.0 UG 0 0 0 eth0
4. To set the DNS ip
[admin@FossServer etc]$ su
Password:
[root@FossServer ~]$ pwd
/home/admin
[admin@FossServer ~]$ cd /etc
[root@FossServer etc]# pwd
/etc
[root@FossServer etc]# ls
abrt init rc
acpi init.d rc0.d
adjtime inittab rc1.d
aliases inputrc rc2.d
aliases.db iproute2 rc3.d
alsa ipsec.conf rc4.d
alternatives ipsec.d rc5.d
anacrontab ipsec.secrets rc6.d
ant.conf issue rc.d
ant.d issue.net rc.local
anthy-conf java rc.sysinit
asound.conf jvm readahead.conf
at.deny jvm-commmon reader.conf.d
audisp jwhois.conf redhat-release
audit kde report.conf
avahi krb5.conf report.d
BackupPC ld.so.cache request-key.conf
bash_completion.d ld.so.conf resolv.conf
bashrc ld.so.conf.d rmt
blkid lftp.conf rpc
bluetooth libaudit.conf rpm
bonobo-activation libuser.conf rsyslog.conf
cgconfig.conf localtime rwtab
cgrules.conf login.defs rwtab.d
chkconfig.d logrotate.conf samba
ConsoleKit logrotate.d sane.d
cron.d ltrace.conf sasl2
cron.daily lvm screenrc
cron.deny mail securetty
cron.hourly mailcap security
cron.monthly mail.rc selinux
crontab man_db.conf services
cron.weekly maven sestatus.conf
crypttab mdadm.conf setroubleshoot
csh.cshrc mime.types setuptool.d
csh.login mke2fs.conf sgml
cups modprobe.d shadow
dbus-1 motd shadow-
default mtab shells
depmod.d mtab.fuselock skel
dhcp mtools.conf slrn.rc
DIR_COLORS multipath smartd.conf
DIR_COLORS.256color Muttrc smolt
DIR_COLORS.lightbgcolor Muttrc.local smrsh
dnsmasq.conf my.cnf snmp
dnsmasq.d nanorc sos.conf
dracut.conf netconfig sound
dracut.conf.d NetworkManager squid
dumpdates networks ssh
elinks.conf nfsmount.conf ssl
environment nsswitch.conf sssd
ethers ntp statetab
exports ntp.conf statetab.d
favicon.png obex-data-server stunnel
fedora-release odbc.ini subversion
festival odbcinst.ini sudoers
filesystems openldap sudoers.d
fonts openvpn sysconfig
foomatic opt sysctl.conf
fprintd.conf PackageKit systemd
fstab pam.d system-release
gconf pam_pkcs11 system-release-cpe
gcrypt pango terminfo
gdm passwd udev
ghostscript passwd- updatedb.conf
gimp pbm2ppa.conf UPower
gnome-settings-daemon pcmcia urlview.conf
gnome-vfs-2.0 php.d usb_modeswitch.conf
gnupg php.ini usb_modeswitch.d
gpm-root.conf pinforc vimrc
gpm-syn.conf pki virc
gpm-twiddler.conf plymouth vpnc
gre.d pm vsftpd
GREP_COLORS pm-utils-hd-apm-restore.conf
warnquota.conf
group pnm2ppa.conf webalizer.conf
group- polkit-1 wgetrc
grub.conf popt.d wpa_supplicant
gshadow portreserve X11
gshadow- ppp xdg
gssapi_mech.conf prelink.cache xinetd.d
gtk-2.0 prelink.conf xml
gtk-3.0 prelink.conf.d yp.conf
hal printcap yum
host.conf profile yum.conf
hosts profile.d yum.repos.d
hosts.allow protocols zlogin
hosts.deny pulse zlogout
hp purple zprofile
httpd quotagrpadmins zshenv
idmapd.conf quotatab zshrc
[root@FossServer etc]#
5. edit resolv.conf file to set the DNS ip addr
[root@FossServer etc]# vi resolv.conf
6. Add the text below in the file at bottom
nameserver 172.16.121.2
7. To set the IP address permanently follow the steps below
[root@FossServer etc]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="E0:69:95:00:89:20"
NM_CONTROLLED="yes"
ONBOOT="no"
BOOTPROTO=none
IPV6INIT="no"
~
8. update the above file as below
DEVICE="eth0"
HWADDR="E0:69:95:00:89:20"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=static
IPV6INIT="no"
IPADDR=172.16.121.45
NETMASK=255.255.0.0
GATEWAY=172.16.121.1
DNS=172.16.121.2
9. save the file and quit the editor.
10. Next start the network and networkmanager
services
[root@FossServer etc]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
[root@FossServer etc]# service NetworkManager restart
Stopping NetworkManager daemon: [FAILED]
Setting network parameters... [ OK ]
Starting NetworkManager daemon: [ OK ]

More Related Content

What's hot

Analysis of Compromised Linux Server
Analysis of Compromised Linux ServerAnalysis of Compromised Linux Server
Analysis of Compromised Linux Serveranandvaidya
 
Network configuration
Network configurationNetwork configuration
Network configurationengshemachi
 
Fail2ban - the system security for green hand -on linux os
Fail2ban  - the system security  for green hand -on linux osFail2ban  - the system security  for green hand -on linux os
Fail2ban - the system security for green hand -on linux osSamina Fu (Shan Jung Fu)
 
Wuala, P2P Online Storage
Wuala, P2P Online StorageWuala, P2P Online Storage
Wuala, P2P Online Storageadunne
 
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...Cisco Russia
 
Expo Canitec 2010, Taller Arris
Expo Canitec 2010, Taller ArrisExpo Canitec 2010, Taller Arris
Expo Canitec 2010, Taller ArrisExpo Canitec
 
Docker-OVS
Docker-OVSDocker-OVS
Docker-OVSsnrism
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linuxVarnnit Jain
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commandstmavroidis
 
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...Cisco Russia
 
High Availability Server with DRBD in linux
High Availability Server with DRBD in linuxHigh Availability Server with DRBD in linux
High Availability Server with DRBD in linuxAli Rachman
 
FreeLix: Semplicità & Controllo
FreeLix: Semplicità & ControlloFreeLix: Semplicità & Controllo
FreeLix: Semplicità & ControlloValerio Balbi
 
Multicloud connectivity using OpenNHRP
Multicloud connectivity using OpenNHRPMulticloud connectivity using OpenNHRP
Multicloud connectivity using OpenNHRPBob Melander
 
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...Saroj Sahu
 
There's Plenty of Room at the Bottom
There's Plenty of Room at the BottomThere's Plenty of Room at the Bottom
There's Plenty of Room at the BottomBenjamin Black
 

What's hot (20)

Analysis of Compromised Linux Server
Analysis of Compromised Linux ServerAnalysis of Compromised Linux Server
Analysis of Compromised Linux Server
 
Log
LogLog
Log
 
Network configuration
Network configurationNetwork configuration
Network configuration
 
Fail2ban - the system security for green hand -on linux os
Fail2ban  - the system security  for green hand -on linux osFail2ban  - the system security  for green hand -on linux os
Fail2ban - the system security for green hand -on linux os
 
Wuala, P2P Online Storage
Wuala, P2P Online StorageWuala, P2P Online Storage
Wuala, P2P Online Storage
 
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...
 
Expo Canitec 2010, Taller Arris
Expo Canitec 2010, Taller ArrisExpo Canitec 2010, Taller Arris
Expo Canitec 2010, Taller Arris
 
Docker-OVS
Docker-OVSDocker-OVS
Docker-OVS
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linux
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
 
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...
 
Pledge in OpenBSD
Pledge in OpenBSDPledge in OpenBSD
Pledge in OpenBSD
 
Log
LogLog
Log
 
High Availability Server with DRBD in linux
High Availability Server with DRBD in linuxHigh Availability Server with DRBD in linux
High Availability Server with DRBD in linux
 
Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)
 
FreeLix: Semplicità & Controllo
FreeLix: Semplicità & ControlloFreeLix: Semplicità & Controllo
FreeLix: Semplicità & Controllo
 
Multicloud connectivity using OpenNHRP
Multicloud connectivity using OpenNHRPMulticloud connectivity using OpenNHRP
Multicloud connectivity using OpenNHRP
 
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
 
Log
LogLog
Log
 
There's Plenty of Room at the Bottom
There's Plenty of Room at the BottomThere's Plenty of Room at the Bottom
There's Plenty of Room at the Bottom
 

Similar to Ex no1 (1)

Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemSneha Inguva
 
Deep Dive in Docker Overlay Networks
Deep Dive in Docker Overlay NetworksDeep Dive in Docker Overlay Networks
Deep Dive in Docker Overlay NetworksLaurent Bernaille
 
了解网络
了解网络了解网络
了解网络Feng Yu
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPFIvan Babrou
 
debugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitchdebugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitch어형 이
 
[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network TroubleshootingOpen Source Consulting
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornmentAsif
 
SAS (Secure Active Switch)
SAS (Secure Active Switch)SAS (Secure Active Switch)
SAS (Secure Active Switch)Security Date
 
LF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress SchedulingLF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress SchedulingLF_OpenvSwitch
 
[OpenStack 하반기 스터디] HA using DVR
[OpenStack 하반기 스터디] HA using DVR[OpenStack 하반기 스터디] HA using DVR
[OpenStack 하반기 스터디] HA using DVROpenStack Korea Community
 
Lab 4 marking
Lab 4 markingLab 4 marking
Lab 4 markingVNG
 
VyOS Users Meeting #2, VyOSのVXLANの話
VyOS Users Meeting #2, VyOSのVXLANの話VyOS Users Meeting #2, VyOSのVXLANの話
VyOS Users Meeting #2, VyOSのVXLANの話upaa
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_partlilliput12
 

Similar to Ex no1 (1) (20)

Docker networking
Docker networkingDocker networking
Docker networking
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
 
Deep Dive in Docker Overlay Networks
Deep Dive in Docker Overlay NetworksDeep Dive in Docker Overlay Networks
Deep Dive in Docker Overlay Networks
 
了解网络
了解网络了解网络
了解网络
 
Micro
MicroMicro
Micro
 
Quic illustrated
Quic illustratedQuic illustrated
Quic illustrated
 
Linux router
Linux routerLinux router
Linux router
 
Unix 4 en
Unix 4 enUnix 4 en
Unix 4 en
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPF
 
debugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitchdebugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitch
 
[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornment
 
SAS (Secure Active Switch)
SAS (Secure Active Switch)SAS (Secure Active Switch)
SAS (Secure Active Switch)
 
LF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress SchedulingLF_OVS_17_Ingress Scheduling
LF_OVS_17_Ingress Scheduling
 
[OpenStack 하반기 스터디] HA using DVR
[OpenStack 하반기 스터디] HA using DVR[OpenStack 하반기 스터디] HA using DVR
[OpenStack 하반기 스터디] HA using DVR
 
Useful Linux commands
Useful Linux commandsUseful Linux commands
Useful Linux commands
 
Lab 4 marking
Lab 4 markingLab 4 marking
Lab 4 marking
 
VyOS Users Meeting #2, VyOSのVXLANの話
VyOS Users Meeting #2, VyOSのVXLANの話VyOS Users Meeting #2, VyOSのVXLANの話
VyOS Users Meeting #2, VyOSのVXLANの話
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_part
 
Linux networking
Linux networkingLinux networking
Linux networking
 

Recently uploaded

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Recently uploaded (20)

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Ex no1 (1)

  • 1. EXNO:12 NETWORKING AND INTERFACE PROCEDURE: 1. To get the current user who logged in and to switch user [admin@FossServer ~]$ whoami admin [admin@FossServer ~]$ su Password: [root@FossServer admin]# whoami root 2. To set the IP addresss [root@FossServer network-scripts]# ifconfig eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20 inet addr:172.16.121.45 Bcast:172.16.255.255 Mask:255.255.0.0 inet6 addr: fe80::e269:95ff:fe00:8920/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500
  • 2. Metric:1 RX packets:11581 errors:0 dropped:0 overruns:0 frame:0 TX packets:39 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1030758 (1006.5 KiB) TX bytes:7458 (7.2 KiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:64 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB)
  • 3. [root@FossServer network-scripts]# service NetworkManager status NetworkManager (pid 2648) is running... [root@FossServer network-scripts]# service NetworkManager stop Stopping NetworkManager daemon: [ OK ] [root@FossServer network-scripts]# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:64 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB) [root@FossServer network-scripts]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20
  • 4. inet addr:172.16.121.45 Bcast:172.16.255.255 Mask:255.255.0.0 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:11765 errors:0 dropped:0 overruns:0 frame:0 TX packets:39 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1048164 (1023.5 KiB) TX bytes:7458 (7.2 KiB) Interrupt:20 Memory:fe400000-fe420000 [root@FossServer network-scripts]# service network status Configured devices: lo eth0 Currently active devices: lo [root@FossServer network-scripts]# service network stop Shutting down loopback interface: [ OK ]
  • 5. [root@FossServer network-scripts]# ifconfig [root@FossServer network-scripts]# ifdown eth0 [root@FossServer network-scripts]# ifdown lo [root@FossServer network-scripts]# ifconfig eth0 172.16.121.45 netmask 255.255.0.0 up [root@FossServer network-scripts]# ifconfig eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20 inet addr:172.16.121.45 Bcast:172.16.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11992 errors:0 dropped:0 overruns:0 frame:0 TX packets:43 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1068024 (1.0 MiB) TX bytes:8564 (8.3 KiB) Interrupt:20 Memory:fe400000-fe420000
  • 6. [root@FossServer network-scripts]# ifconfig lo lo Link encap:Local Loopback LOOPBACK MTU:16436 Metric:1 RX packets:64 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB) [root@FossServer network-scripts]# ifup lo [root@FossServer network-scripts]# ifconfig eth0 Link encap:Ethernet HWaddr E0:69:95:00:89:20 inet addr:172.16.121.45 Bcast:172.16.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12352 errors:0 dropped:0 overruns:0 frame:0 TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
  • 7. collisions:0 txqueuelen:1000 RX bytes:1100369 (1.0 MiB) TX bytes:8564 (8.3 KiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:64 errors:0 dropped:0 overruns:0 frame:0 TX packets:64 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4752 (4.6 KiB) TX bytes:4752 (4.6 KiB) [root@FossServer network-scripts]# 3. To set the GATEWAY ip address
  • 8. [root@FossServer network-scripts]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 [root@FossServer network-scripts]# route add default gw 172.16.121.1 [root@FossServer network-scripts]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 172.16.121.1 0.0.0.0 UG 0 0 0 eth0 4. To set the DNS ip [admin@FossServer etc]$ su Password: [root@FossServer ~]$ pwd
  • 9. /home/admin [admin@FossServer ~]$ cd /etc [root@FossServer etc]# pwd /etc [root@FossServer etc]# ls abrt init rc acpi init.d rc0.d adjtime inittab rc1.d aliases inputrc rc2.d aliases.db iproute2 rc3.d alsa ipsec.conf rc4.d alternatives ipsec.d rc5.d anacrontab ipsec.secrets rc6.d ant.conf issue rc.d ant.d issue.net rc.local anthy-conf java rc.sysinit
  • 10. asound.conf jvm readahead.conf at.deny jvm-commmon reader.conf.d audisp jwhois.conf redhat-release audit kde report.conf avahi krb5.conf report.d BackupPC ld.so.cache request-key.conf bash_completion.d ld.so.conf resolv.conf bashrc ld.so.conf.d rmt blkid lftp.conf rpc bluetooth libaudit.conf rpm bonobo-activation libuser.conf rsyslog.conf cgconfig.conf localtime rwtab cgrules.conf login.defs rwtab.d chkconfig.d logrotate.conf samba ConsoleKit logrotate.d sane.d cron.d ltrace.conf sasl2
  • 11. cron.daily lvm screenrc cron.deny mail securetty cron.hourly mailcap security cron.monthly mail.rc selinux crontab man_db.conf services cron.weekly maven sestatus.conf crypttab mdadm.conf setroubleshoot csh.cshrc mime.types setuptool.d csh.login mke2fs.conf sgml cups modprobe.d shadow dbus-1 motd shadow- default mtab shells depmod.d mtab.fuselock skel dhcp mtools.conf slrn.rc DIR_COLORS multipath smartd.conf DIR_COLORS.256color Muttrc smolt
  • 12. DIR_COLORS.lightbgcolor Muttrc.local smrsh dnsmasq.conf my.cnf snmp dnsmasq.d nanorc sos.conf dracut.conf netconfig sound dracut.conf.d NetworkManager squid dumpdates networks ssh elinks.conf nfsmount.conf ssl environment nsswitch.conf sssd ethers ntp statetab exports ntp.conf statetab.d favicon.png obex-data-server stunnel fedora-release odbc.ini subversion festival odbcinst.ini sudoers filesystems openldap sudoers.d fonts openvpn sysconfig foomatic opt sysctl.conf
  • 13. fprintd.conf PackageKit systemd fstab pam.d system-release gconf pam_pkcs11 system-release-cpe gcrypt pango terminfo gdm passwd udev ghostscript passwd- updatedb.conf gimp pbm2ppa.conf UPower gnome-settings-daemon pcmcia urlview.conf gnome-vfs-2.0 php.d usb_modeswitch.conf gnupg php.ini usb_modeswitch.d gpm-root.conf pinforc vimrc gpm-syn.conf pki virc gpm-twiddler.conf plymouth vpnc gre.d pm vsftpd GREP_COLORS pm-utils-hd-apm-restore.conf warnquota.conf group pnm2ppa.conf webalizer.conf
  • 14. group- polkit-1 wgetrc grub.conf popt.d wpa_supplicant gshadow portreserve X11 gshadow- ppp xdg gssapi_mech.conf prelink.cache xinetd.d gtk-2.0 prelink.conf xml gtk-3.0 prelink.conf.d yp.conf hal printcap yum host.conf profile yum.conf hosts profile.d yum.repos.d hosts.allow protocols zlogin hosts.deny pulse zlogout hp purple zprofile httpd quotagrpadmins zshenv idmapd.conf quotatab zshrc [root@FossServer etc]#
  • 15. 5. edit resolv.conf file to set the DNS ip addr [root@FossServer etc]# vi resolv.conf 6. Add the text below in the file at bottom nameserver 172.16.121.2 7. To set the IP address permanently follow the steps below [root@FossServer etc]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="E0:69:95:00:89:20" NM_CONTROLLED="yes" ONBOOT="no" BOOTPROTO=none IPV6INIT="no" ~ 8. update the above file as below DEVICE="eth0"
  • 16. HWADDR="E0:69:95:00:89:20" NM_CONTROLLED="yes" ONBOOT="yes" BOOTPROTO=static IPV6INIT="no" IPADDR=172.16.121.45 NETMASK=255.255.0.0 GATEWAY=172.16.121.1 DNS=172.16.121.2 9. save the file and quit the editor. 10. Next start the network and networkmanager services [root@FossServer etc]# service network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ]
  • 17. Bringing up interface eth0: [ OK ] [root@FossServer etc]# service NetworkManager restart Stopping NetworkManager daemon: [FAILED] Setting network parameters... [ OK ] Starting NetworkManager daemon: [ OK ]