LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-16-2012, 08:32 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,426

Rep: Reputation: 53
Re setup server name and static IP


Hi all,

Fedora 17 desktop 64bit

I have 2 NICs on the PC, a PCIe NIC card and an onboard NIC. The PC is now connecting the router via PCIe card and running dynamic IP.

# ifconfig
Code:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.10  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::92f6:52ff:fe03:5786  prefixlen 64  scopeid 0x20<link>
        ether 90:f6:52:03:57:86  txqueuelen 1000  (Ethernet)
        RX packets 8471  bytes 6826859 (6.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8620  bytes 1295445 (1.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:0e:a6:f9:a3:5b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 1616  bytes 464962 (454.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1616  bytes 464962 (454.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
UUID="c29af442-1fb3-44dc-a15a-0159397bbacd"
NM_CONTROLLED="yes"
HWADDR="90:F6:52:03:57:86"
BOOTPROTO="dhcp"
DEVICE="eth0"
ONBOOT="yes"
# cat /etc/sysconfig/network-scripts/ifcfg-eth1
Code:
UUID="7be24cfc-a805-46e1-8776-f42a927c7165"
NM_CONTROLLED="yes"
HWADDR="00:0E:A6:F9:A3:5B"
BOOTPROTO="dhcp"
DEVICE="eth1"
ONBOOT="no"
# cat /etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=fedora17
NTPSERVERARGS=iburst
# service --status-all
Code:
I don't know of any running hsqldb server.
netconsole module not loaded
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
spice-vdagentd.service - LSB: Agent daemon for Spice guests
	  Loaded: loaded (/etc/rc.d/init.d/spice-vdagentd)
	  Active: active (exited) since Fri, 16 Nov 2012 21:10:47 +0800; 27min ago
	 Process: 740 ExecStart=/etc/rc.d/init.d/spice-vdagentd start (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/spice-vdagentd.service

tcsd.service - LSB: Init script for TCSD
	  Loaded: loaded (/etc/rc.d/init.d/tcsd)
	  Active: failed (Result: exit-code) since Fri, 16 Nov 2012 21:10:47 +0800; 27min ago
	 Process: 735 ExecStart=/etc/rc.d/init.d/tcsd start (code=exited, status=137)
	  CGroup: name=systemd:/system/tcsd.service

Nov 16 21:10:47 fedora17 tcsd[735]: Starting tcsd: [FAILED]
I expect to set up static IP, 192.168.0.11, and use the hostname, fedora17, as server name.

# hostname
Code:
fedora17
# hostname -f
Code:
fedora17
# cat /etc/hosts
Code:
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
Please advise how to set relevant file/files. TIA

B.R.
satimis
 
Old 11-16-2012, 08:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
system-configure-network will let you set the static IP, and everything else is already done right?
 
Old 11-16-2012, 09:40 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,426

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by acid_kewpie View Post
system-configure-network will let you set the static IP, and everything else is already done right?
Hi,

I haven't touched any file yet.

I suppose you referred to /etc/sysconfig/network-scripts/

# ls /etc/sysconfig/network-scripts/
Code:
ifcfg-eth0   ifdown-ipv6    ifup          ifup-isdn    ifup-tunnel
ifcfg-eth1   ifdown-isdn    ifup-aliases  ifup-plip    ifup-wireless
ifcfg-lo     ifdown-post    ifup-bnep     ifup-plusb   init.ipv6-global
ifdown       ifdown-ppp     ifup-eth      ifup-post    net.hotplug
ifdown-bnep  ifdown-routes  ifup-ippp     ifup-ppp     network-functions
ifdown-eth   ifdown-sit     ifup-ipv6     ifup-routes  network-functions-ipv6
ifdown-ippp  ifdown-tunnel  ifup-ipx      ifup-sit
Which of them shall I configure? Thanks

satimis
 
Old 11-16-2012, 03:57 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
You suppose wrong. I mean system-configure-network. Actually, I did get it wrong and I meant system-config-network, but still, I don't mean edit those files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] setup FTP on Linux server which has static IP fortran Linux - Server 11 05-17-2012 02:23 AM
Can't setup static IP satimis Linux - Software 2 01-15-2010 10:29 AM
static IP setup problem SRS Linux - Networking 3 07-10-2007 09:27 PM
suse and static ip setup? caperneoignis Linux - Networking 1 07-27-2004 11:23 AM
Verizon aDSL setup with static IP address RH9 server costasm Linux - Networking 1 10-16-2003 02:19 PM


All times are GMT -5. The time now is 01:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration