CentOS 5 Networking :: Tracert Cannot Handle "host" Cmdline Arg Wp.pl On Position 1 (argc 1)?
Sep 2, 2010
I would like to secure my dhcp server against mac spoofing. I have two nics:eth0 -10.10.10.1/24 LANeth1 - WAN (dynamic from dhcp)I have setup /etc/etheresSERWER.MYDOMAIN.PL 00:01:02:03:04:05comp1 00:1f:d0:27:d1:beetc.
What's the centos-approved way to handle group environment configuration? Let's say there are users in, oh, 4 different groups. Let's use the usual suspects:
accounting warehouse admin netadmin
and I want to set up environment variables and maybe some pathing that are specific to a given group. So that when 'joeblow', who is a member of group 'warehouse', logs in, the pathing and environment variables (and whatever else) that is needed for users in the 'warehouse' group is set up and configured.
What I was initially looking for was an /etc/groups.d, and in /etc/groups.d is
As part of the login process, the group memberships for the login username would be examined, and for each hit the respective /etc/groups.d/ script would be run. I'm not seeing anything like that, so I'm assuming centos uses some other mechanism, but I'm obviously not using the proper keyword mojo. Can someone point me to where this mechanism is described?
My centos host (running under VMware) is called localhost.localdomain I've tried to rename this is a myriad of ways:
* I've altered HOSTNAME variable in /etc/sysconfig/network * I've created a file called /etc/hostname with the new name * I've modified /etc/hosts * I've written the new name to /proc/sys/kernel/hostname * I've used sysctl -w kernel.hostname=NEWNAME * I've run hostname NEWNAME
and yet after reboot the name remains localhost.localdomain
I'm setting up apache on centOS 5.5 and administering it from another host on my LAN(this web server has no Xorg). I can ping from the config host to the web server but not the other way. My network is quite a way from being set up so i'm just configuring the web server at the moment, the simplest way i can. It's just trying to get two LAN hosts both with 192.168.1.0/24 I.Ps to talk to each other using a router to connect them.
Here are the outputs of ifconfig and netstat -rn for the web server, the config host and the router:
The ifconfig -a and netstat -rn of the config host are: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
when i am using traceroute command, it is giving the erro as follow: traceroute [URL]: Temporary failure in name resolution Cannot handle "host" cmdline arg [URL] on position 1 (argc 1)
I've just configured my Linksys RVS-4000 router to syslog messages to remote syslogd server (i.e. my CentOS5 machine). Redirecting messages was easy, but now I'm having difficulties to redirect those same messages received from Linksys to a separate log file. By default, all these messages are logged to /var/log/messages, and after browsing manual pages for syslog, syslog.conf, and syslogd, came to suspect that what I want isn't possible.
I have 5 1955 blades in an enclosure for an custom application cluster.All were running Centos 4.4 no problem.We wanted to start upgrading them cleanly to 5.5 so two of them got fresh installs of 5.5.The installs went well enough, no glaring errors.However they can only ping each other! The network settings are fine, no firewall or selinux. I'd run the info script but I can neither download it to them nor paste it in via kvm.Standard static entries, virtually identical to their 4.4 brethren. They ping each other so network drivers are fine, no built in switch configuration changes. It has to be some kind of network configuration issue that i'm just not seeing.
Edit* When i try and ping anything else, including the other blades, I get Destination Host Unreachable.
what the difference between the commands tracert and traceroute is? I need to run tracert as superuser, while traceroute is no problem in user mode.
Also, it appers like tracert is showing nodes completely different from traceroute:
Code: sudo tracert google.nl traceroute to google.nl (216.239.59.104), 30 hops max, 60 byte packets 1 192.168.1.254 (192.168.1.254) 1.078 ms 1.699 ms * 2 * * *
[Code]....
Another thing.. Is it correct to assume that hop 5 and 7 above are loadbalanced nodes? How should I interpret this result, is the traceroute initiating it's path three times? Otherwise it'd be rather strange as to display other addresses in the same node..
In my CentOS configuration, when I use vim6.3 to edit a file, then close it, and re-open it, my cursor starts out at the line where I last left off. In my cygwin (on Windows) configuration, when I use vim7.3, I don't get this behavior. The viminfo does exist and does seem to get read (because if I type '0 it will go to my last cursor location - but that is globally and could change the file being edited). I've also looked at the .viminfo file and see it getting updated as expected. In my .vimrc file, I have this:
Quote: set viminfo='100,<50,f1,"500,/100,:100
Note that on the CentOS side if I open foo, then I open bar, then I open foo again, my cursor is in the right place for foo, whereas on cygwin if I do this, my cursor would be at the 1st line of foo.. If I were to type '0, it would actually switch to editing bar and put the cursor where I last left off. Anyhow, this all boils down to asking how I get my cygwin vim to act like my CentOS vim.
I am trying to set up samba in my CentOS virtual machine that is running on a Windows 7 host. I have found a tutorial in the How-Tos on this site but I'm not sure if they are exact and I'm paranoid about messing something up. The link to the tutorial is below. Is there anything that I should do different or anything that I should be aware of? Also, once this is set up, how do I transfer files between the two machines? Please note: I am very inexperienced in the IT field. [URL]...
I have installed CentOS 5.4 machine named test.example.com (192.168.1.1)File /etc/hosts contains:127.0.0.1 test.example.com test localhost.localdomain localhostI have read that the loopback addres should not be assigned to host name,only to localhost and the host name should be assigned to 192.168.1.1, like this:127.0.0.1 localhost.localdomain localhost192.168.1.1 test.example.com testIs there any reason why it should be one or another way?
When i am trying to access the any directory other on port *80, its not being accessible from the static ip which is routed through a DMZ server. http://122.165.35.9:8085 something like this returns the error "could not connect to web browser"
I'm trying to connect with my server via telnet, but when i sent the command (telnet xxx.xxx.xxx.xxx Port) doesn't works and shows then follow error: Unable to connect to remote host: Connection refused, It happens with any port. Is strange but my telnet services works (telnet xxx.xxx.xxx.xxx), In addition, i tried with firewall enabled and disabled and the problem still happens. My centOS run on virtualbox.
I am thinking about installing rsyslog using yum, but I only want to try it out first and don't want to create conflicts and problems that will be hard to revert. When I ask yum on CentOS 5 about rsyslog, I get this (note much older version - it's too bad that even the latest STABLE rsyslog isn't in the repository):
I am working on a cluster for a molecular dynamics class and I have to edit my FORTRAN code (only the newest and best for me!). In order to get through to the cluster I have to ssh in. The network on which the cluster resides is behind a firewall, so I have to ssh through the firewall into the network first.
this is fine, I can login and move files and folders as needed, including sftp-ing into host 1, then into the cluster so I can transfer files from cluster to host and then host to me. This gets rather tiresome, so it would be nice to edit the files in place.
The problem is that when I access my code with emacs it launches the emacs client on Host 1, with no mouse support. I know the purists will howl about how I should be using keyboard shortcuts, but I am a chemist and not a programmer, so the mouse is very nice for me. Is there any way I can perhaps mount the cluster using sshfs so that when I open my code it launches a local instance of emacs? Sorry if this is the wrong forum, but I thought it was network related.
I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh.Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host.Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine)
I have a Debian Etch system. From the Gnome file manager, I can easily browse to SMB file shares on the network. So the SMB redirector is apparently present on the system.
Question - how do I access SMB shares from the command line? smbmount command is not available, trying to cd into a smb://... path gives a "No such file" error. I'm not looking for a persistent mapping, just a brief look. Better yet if root access is not necessary.
Here's the text from the serial console before I rebooted:
BUG: unable to handle kernel paging request at ffff8140320234b8 IP: [<ffffffff802b0a13>] dentry_iput+0x26/0x9d PGD 8063 PUD 0
[code]....
My root server is using CentOS release 5.2 (Final), kernel 2.6.26.5-rootserver-20080917a, SMP, 64-bit This Oops happened yesterday and before that it happened on March 14th of this year, and before that on January 31st of this year, so a repeating pattern. On the January 31st Oops, I just rebooted. On the March 14th Oops, I reformatted the two swap partitions as follows: mkswap -c /dev/sda2; mkswap -c /dev/sdb2 On this last Oops, I turned off the swap for 24-hours, then decided to turn it on again after doing the above mkswap again. During the previous uptime, I had dumpcap packet capture running, but this last reboot, I'm not going to run it.
The internal network is behind nat done by the PC Router.The TP Link is recieving wireless signal from outdoors and it has switching and basic routing capabilities. I'm using the PC router for better routing options.PC Router (or R for short) is a triple-booting machine - Linux, FreeBSD and Windows. It has two lan cards - external (ext_if) - 100Mbps Realtek 8139 and internal (int_if) - 1Gbps integrated Realtek 8169.The problem is that all traffic from R to the network is slow - about 5-20K, while the traffic in the oppoiste direction is all right - about 10MB that is fine for 100Mbps cables, NICs and switches. The problem persist no matter the OS the pc R is running.I've tried some debugging on the situation as follows:
- put another PC at the place of R - everything is fine. That exclude the possibility of damaged cables, RJ-45s, switches and etc. - connected both of the NICs to the Internet while the internal network is being disconnected and they both work fine (no delays) - traffic shaping is not running - there is nothing in firewalls except NATing the internal network (and it is working fine). Actually these firewall rules have been operational for more than months and everything was fine untill a week or two ago. - changed the internal NIC with another - connected the internal network directly to the TP and all of the PCs are getting good network performance. Then connected the R machine to the TP as well and there was good performance between the internal network PCs and R. - R has good performance to the TP. In fact everything has good performance directly to the TP (when not connecting trough R). - the problem persist only between R and machines from the internal network.
I would like to find out from cmdline (!) if a certain software is already installed.In redhat based Linuxes I could enter something likerpm -qa|grep -i mysoftwarebut this does not work in Ubuntu.How can I find this out with apt?What, if the installation was done by a perl script .pl rather than with apt.How can I find out in this case?
What is the default cmdline (!) mail client in Ubuntu?
Normally I use Thunderbird as GUI. But occasionally I get to Ubuntu systems where TB is not installed and cannot be installed but I need quick access to mail client through a commandline based simple mail client.
I have some Oracle (Unbreakable|Enterprise) Linux systems, mostly running v5.4. I'd like to migrate them to CentOS 5.4 (or 5.5... I'm not picky about that).Is it as simple as updating the repo files in /etc/yum.repos.d, and issuing 'yum upgrade', or is there further magic involved?
I have seen there are some tricks to handle transparents switches using Nagios. Does anybody know if it is possible to handle unmanaged switches connected in daisy chain?In my network I have some devices connected in this way [switch]--[dev_1]--[dev_2]--[dev_3]
where "switch" is a managed switch" and dev_i is a device with an unmanaged switch inside (no snmp available). All the devices have an IP address. Is it possible to get the network topology with Nagios?