LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2006, 12:47 PM   #1
jmj99385
Member
 
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42

Rep: Reputation: 15
Netconfig gives a syntax error!


Okay, I might be a newbie, but I'm getting there!

I needed to change the IP address for this rig, and every time I try "netconfig", I get "expr: syntax error" just scrolling down the screen. And yes, I'm trying to run this as root. Any idea what happened?
 
Old 04-13-2006, 12:49 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Post the whole ouput.
 
Old 04-13-2006, 12:56 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Do you have ncurses installed?
Change manually in /etc/hosts.
 
Old 04-13-2006, 01:15 PM   #4
jmj99385
Member
 
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien_Hominid
Do you have ncurses installed?
Change manually in /etc/hosts.
Yes, I do have ncurses installed. And I tried changing it manually in the hosts file, but as soon as I rebooted, it went back.

Trying to get the code up here for you. But without net access on that rig, it's proving rather difficult.
 
Old 04-13-2006, 01:17 PM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
What window manager are you using? It might be changing your settings.
 
Old 04-13-2006, 01:20 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
What do you want to change, your IP address, your hostname? The IP is taken from /etc/rc.d/rc.inet1.conf and the hostname from /etc/HOSTNAME.
 
Old 04-13-2006, 01:37 PM   #7
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Sorry, gbonvehi is right, I made a mistake.
 
Old 04-13-2006, 02:27 PM   #8
jmj99385
Member
 
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien_Hominid
What window manager are you using? It might be changing your settings.

I'm just trying to use the regular terminal, though I do have KDE installed.

For a recap now, I added new virtual terminals to my rig (tty7 through tty11). Also tried adding the lisa daemon to rc.local file (that didn't work, but I'm not worried right now). Removed those thinking I might have made a mistake, but still having the same issue.

Right now, I am getting a login of "root@/sbin/netconfig" instead of "root@Darkstar". Here is the last bit of code from when this server thought it was /sbin/netconfig:

Code:
Apr 13 13:13:33 /sbin/netconfig: logger: SIOCADDRT: Network is unreachable 
Apr 13 13:13:33 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig eth0 192.168.1.200 broadcast 192.168.1.255 netmask 255.255.255.0 
Apr 13 13:13:33 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/route add default gw 192.168.1.1 metric 1 
Apr 13 13:13:48 /sbin/netconfig: logger: /etc/rc.d/rc.hotplug start (exiting script) 
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/route del default 
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig eth0 down 
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig eth1 down 
Apr 13 13:47:56 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig lo down 
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig lo 127.0.0.1 
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo 
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/route add default gw 192.168.0.1 metric 1 
Apr 13 13:49:21 /sbin/netconfig: logger: SIOCADDRT: Network is unreachable 
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.hotplug start (entering script) 
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/route add default gw 192.168.0.1 metric 1 
Apr 13 13:49:21 /sbin/netconfig: logger: SIOCADDRT: Network is unreachable 
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig eth0 192.168.0.200 broadcast 192.168.0.255 netmask 255.255.255.0 
Apr 13 13:49:21 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/route add default gw 192.168.0.1 metric 1 
Apr 13 13:49:36 /sbin/netconfig: logger: /etc/rc.d/rc.hotplug start (exiting script) 
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/route del default 
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig eth0 down 
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig eth1 down 
Apr 13 13:55:19 /sbin/netconfig: logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig lo down 
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig lo 127.0.0.1 
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1:  /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo 
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1:  /sbin/route add default gw 192.168.0.1 metric 1 
Apr 13 13:58:40 Atlantis logger: SIOCADDRT: Network is unreachable 
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.hotplug start (entering script) 
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1:  /sbin/route add default 
gw 192.168.0.1 metric 1 Apr 13 13:58:40 Atlantis logger: SIOCADDRT: Network is unreachable 
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig eth0 192.168.0.200 broadcast 192.168.0.255 netmask 255.255.255.0 
Apr 13 13:58:40 Atlantis logger: /etc/rc.d/rc.inet1:  /sbin/route add default gw 192.168.0.1 metric 1 
Apr 13 13:58:55 Atlantis logger: /etc/rc.d/rc.hotplug start (exiting script)
I used gbonvehi's information (thank you very much BTW) before the 13:58 reboot. Now the server thinks its Atlantis again at least. But I am afraid to run netconfig again EVER unless I can figure out what happened and how to avoid it in the future....

Again, thank you for all your help!
 
Old 04-13-2006, 03:02 PM   #9
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Most probably your rc.inet1.conf got messed up. Did you try to edit it by hand?
 
Old 04-13-2006, 04:12 PM   #10
jmj99385
Member
 
Registered: Aug 2005
Distribution: Slackware, Fedora, CentOS
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien_Hominid
Most probably your rc.inet1.conf got messed up. Did you try to edit it by hand?
After looking at the file, no. I've looked through so many things I really had to look back and see. But apparently I really did mess things up somewhere. Just tried to run pine and no dice. Very odd....
 
  


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
syntax error in C ++ mshinska Programming 3 10-07-2005 05:53 PM
Many errors when 'make'ing (example: error: syntax error before `::' token) darkblade Linux - Software 5 03-02-2005 04:00 PM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 07:09 PM
Where's the syntax error tamtam Programming 2 07-24-2004 10:07 AM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration