Fedora Networking :: IP Alias On NIC ?

Feb 15, 2009

I have to move our DNS server to our VMware environment. With that comes a new IP address (10.10.102.x). The current address is in the 192.168.10.x. range. Is there a way to bind an alias to my NIC that has a different IP range? I tried it and it didnt work but if i used two IPs in the same subnet range it works. What are my options?

I don't want to go around and modify all my clients to use the new IP. I have many other things running like Nagios and Puppet. Unfortunately this is going to suck and I probably dont have any other options.

View 7 Replies


ADVERTISEMENT

Fedora Networking :: OpenVPN Using Alias Rather Than IP

Nov 27, 2009

Is there anyway you can configure either OpenVPN client or the system to allow connections using OpenVPN to be made to computers on the OpenVPN network using their alias rather than their IP address. This may sound blasphemous but you can in Windows. That is if the VPN network is say 10.x.0.x I could connect to Comp4 or Comp2 using Comp4 or Comp2 not 10.x.0. 4 or 10.x.0.2 or whatever IP is allocated by the OpenVPN server. If the OpenVPN server has not been restarted then it will usually allocate the same IP every time the same client connects.

View 8 Replies View Related

Networking :: Alias Eth0 To Lan

Apr 8, 2010

I know I can rename my network interfaces (eg 'eth0' to 'lan', 'eth1' to 'net' etc) but does anyone know a way I can alias (symlink if you like) 'lan' -> 'eth0'

I want to be able to use more legible interface names in things like iptables rules (such as "-i lan" instead of "-i eth0") but I don't want to break any config that is expecting eth0 to exist....

View 5 Replies View Related

Networking :: Can't Reach The 2nd Alias 10.0.2.23?

Jan 12, 2010

I'm running ubuntu 9.04 and I have set up 2 ip aliases using the /etc/network/interfaces file http://pastie.org/775037 -- when I ping the main address 10.0.2.16, all works fine, same with the first alias 10.0.2.22 -- but I can't reach the 2nd alias 10.0.2.23 I get the following from ping:

PING 10.0.2.23 (10.0.2.23): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
92 bytes from 10.5.0.1: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 5400 06eb 0 0000 3f 01 5e81 10.5.0.34 10.0.2.23

My machine's IP address is 10.5.0.34 I can't figure out why I can ping 10.0.2.22 but not 10.0.2.23 -- seems like there is probably some kind of routing thing that I'm missing, but I'm confused how it would have gotten set up for 10.0.2.22 but not 10.0.2.23 -- hopefully someone out there has an idea -- or can point me to references where I might be able to learn how to debug routing issues on a network?

View 5 Replies View Related

Networking :: IP Alias Fails When Using Ifup Eth0:1?

Aug 19, 2010

I having a problem with my network. I'm trying to assign an IP alias of eth0:1 to eth0. If I use ifup eth0:1 is fails and corrupts the network. Making the network useless. But if I just enter 'ifconfig eth0:1 10.1.1.51', it work fine? My scripts look like these:

Code:
:network-scripts; cat ifcfg-eth0
NAME="System eth0"
DEVICE=eth0
ONBOOT=yes

[Code].....

View 2 Replies View Related

CentOS 5 Networking :: NIC Alias Rename Using Udev?

Feb 16, 2009

I'm trying to arrange my 4 NIC's on CentOS 5. Two of them are build-in motherboard nic's and the others are PCI-E Dual Intel card. I'm wondering if someone succeed with udev renaming rule based on BUS location like ID=="0000:03:00.0" ... etc

View 4 Replies View Related

Networking :: Interface Alias Does Not Receive Broadcast Traffic

Sep 25, 2010

When setting up an alias for eth0, the interface works as expected for normal traffic, but does not receive broadcast traffic.

Host 1's setup:

Code:

Pinging host 1's normal interface from host 2 works as expected:

Code:

Pinging host 1's alias interface from host 2 works as expected:

Code:

Broadcast pinging from host 2 only gets a reply from host 1's real interface (as well as some other uninteresting devices on the network):

Code:

I have confirmed by listening on both interfaces using netcat, and broadcasting using netcat, and again only the real interface receives data.

Is this by design, or is it possible to get interface aliases to receive broadcast traffic?

View 1 Replies View Related

Ubuntu Networking :: Create A Nickname/alias/logical Name For An Interface?

Jul 28, 2011

Basically I am looking for a simple way to create a universal nickname/alias for a interface.We ship servers that have upto 6 NICs on them. The user can have those NIC configured as either ethN, bondN or vlanN interfaces. As we need to provide NIC status information we would like to be able to run commands such as

Code:
ifconfig INTERFACE1
that would map to whatever the user had already configured.

View 1 Replies View Related

CentOS 5 Networking :: No Ifcfg-eth0: Alias Files To Edit?

Jun 11, 2009

When I setup the server I added multiple ips. Now that I need to edit ip info I can't find any alias files in the network-scripts folder. But restarting server the ips work fine. Is there some where else that this would be stored.

View 2 Replies View Related

Red Hat / Fedora :: Set A Hostname Alias In RHEL5?

Aug 31, 2010

Can anybody explain how I can set a hostname alias in RHEL5. We are testing RHEL to replace our Solaris LDAP servers, one of the things we need is to be able to set a hostname alias on the public interface.In solaris we can just update the /etc/hosts file to something like

ipaddress hostname alias1 alias2
Things looks alittle different in RHEL, the host file only contains
127.0.0.1 hostname.fqdn localhost.localdomain localhost

I read about the sysconfig/network files but can only see about changing the hostname there and nothing about setting a different alias.

View 2 Replies View Related

Red Hat / Fedora :: Adding Alias To .bashrc?

Feb 9, 2011

I have a script that I run using ./dom example.com.

I want to add an alias to .bashrc so that I can run it using "d example.com".

I have tried adding each of the lines below in turn but I still receive the error:
-bash: d: command not found

alias d="/bin/bash /home/user/dom"
alias d="./home/user/dom"
alias d="sh /home/user/dom"

View 3 Replies View Related

Fedora :: F11 Apache 403 Forbidden Using Alias Directory?

Nov 20, 2009

I have searched the forum high and low for the solution with no success, so I will now post this problem, with all known facts. Linux (and Fedora) is brand new to me so I'm somewhat illiterate with the language and recommendations from reading other threads. Please bare with me. I'm reading the book Beginning PHP and MySQL from Novice to Professional by Cristian Darie.The book has you create an Alias directory for creating the tshirtshop web-based application.

The book uses the directory /home/username/tshirtshop. However, I did not want this in the /home directory, so I created a new directory from the root directory /workspace/tshirtshop. Below are the areas of interest in the file httpd.conf (I restarted the httpd service each time I edited this file):

Code:
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

[Code]....

View 1 Replies View Related

General :: How To Change Default Vi Alias In Fedora 14?

May 25, 2011

In my laptop, if I type below

$ which vi
alias vi='vim'
/usr/bin/vim

Now I want to change the vi alias to another bin, e.g. vim_wrapper a script created in /usr/bin/, I type this line:
alias vi="vim_wrapper"

in ~/.bashrc or /etc/bashrc, but take no effects. So How to change the default vi alias vi='vim' to vi='vim_wrapper'?

View 1 Replies View Related

Red Hat / Fedora :: Create An Alias That Calls A Script

May 23, 2011

Anyone know if it is possible to create an alias that calls a script that will SU to a different ID and log me in.

Currently I have to log in using my ID and the SU to an administrator ID. Just kind of a pain to do all the time.

View 3 Replies View Related

Fedora Servers :: PhpMyAdmin Alias - Cant Seem To Access It With The Browser

Jun 12, 2010

I have been trying to set up phpmyadmin for a while now, but I just cant seem to access it with the browser.

I yum installed phpmyadmin. In my /etc/httpd/conf.d/phpMyAdmin.conf I have:

When I visit [ip]/phpmyadmin I just get a 404

I've reloaded apache, checked the phpmyadmin config file, and everything seems fine, I just get constant 404.

View 2 Replies View Related

Fedora Security :: Sudo NOPASSWD To BashRC Alias?

Aug 25, 2011

I've set up an alias in .bashrc (let's call it alias1), and am trying to set up a sudo NOPASSWD rule for that particular command. So far, I've attempted:
user ALL = NOPASSWD: alias1
user ALL=(ALL) NOPASSWD: alias1
But keep getting told I have a syntax error - presumably this is because visudo doesn't recognise alias1? I've already checked that alias1 works correctly, so I assume I'm just referring to it incorrectly.

View 6 Replies View Related

Fedora :: Bash Function Alias To Recursively Grep Current Directory?

Feb 14, 2011

This should be a simple thing to accomplish, but I can seem to figure it out. Essentially, I want to have a bash alias or function that will let me recursively grep the current directory. A while back I added this to my .bashrc:

Code:

alias rg="grep -r --exclude=*/.svn/* --exclude=*.swp"

This works fine, (and also ignores any svn and vim swp files), and I can call it like:

Code:

rg foo *

However, 99.999% of the time, I am only interested in searching in the current directory, so the "*" is a bit redundant. Also, I would say 5-10% of the time, I am typing faster than thinking and forget the "*", so grep just sits there trying to read from stdin. It's a pretty minor thing, but ideally I'd like to be able to just type:

Code:

rg foo

I've tried creating a function to handle this:

Code:

function rg(){
grep -r --exclude=*/.svn/* --exclude=*.swp $1 *
}

but it behaves exactly the same as the alias above. escaping the "*" with 's doesn't work, and neither does trying `pwd` (or even a hard-coded path) in its place.

View 2 Replies View Related

Fedora Servers :: Configure Email Address Alias Using Regular Expression In Postfix?

Mar 8, 2010

I am trying to configure virtual alias using regular expression.

For example :

Email send to user.1@example.com and user.2@example.com will deliver to user mailbox.

Email send to user2.1@example.com and user2.2@example.com will deliver to user2 mailbox.

And the numbers or alphabet in between user name and the domain will be vary , I can't just do a normal alias.

I been try to play around with main.cf and the virtual alias table but still not able to get work. So I am not sure is the main.cf didnt configure correctly or the regular expression is not working.

View 3 Replies View Related

General :: How To Use The Alias

Aug 2, 2010

I am going through and old .cshrc file and it contains the following alias:

alias pwd 'echo $cwd'

I used to think that this is how pwd might have been implemented. But looks like thats not the case (because then this alias is meaningless).

View 2 Replies View Related

General :: How To Add New Alias

Feb 18, 2010

I was trying to add new alias "alias ls='ls --color=auto'" in .profile, but it never worked I displayed all the alias that are current available and did not see the one I just added and found this among them:

lsls $LS_OPTIONS
and the LS_OPTIONS is "-N --color=none -T 0"
this is in /etc/csh.cshrc file which I do not have permission to edit.
Is there way to overwrite it?

Also I do not see a .cshrc under my home directory. Can I just make one and source it? Or do I have to link it to some source file that already exists?

View 3 Replies View Related

General :: Use A 'cdl' Alias That Would Cd Into The Directory?

Jan 2, 2010

I would like to use something like a 'cdl' alias that would cd into the directory i choose and then ls the contents automatically. I find myself using ls after i cd into a directory all the time. Something like:

alias='cdl=cd $1;ls'
usage: cdl /local/dir

View 2 Replies View Related

General :: How To Create Certain Alias

Apr 29, 2011

I'm testing out the aliases to have a better understanding on how to shorten commands. I am trying to list all files whose file names end with a .c extension in which starts from the current working directory and recursing through subdirectories as well. And I want to delay the path name expansion until the alias is executed. I want to use the directory /usr/share. Would the command be: alias findc='find -type d -exec /usr/share'?

View 3 Replies View Related

General :: Ll Not Working \ Have To Set Up A Alias?

Aug 5, 2010

i have to set up a alias like:alias ll='ls -l'them ll will work

View 2 Replies View Related

General :: How To Alias A Command For Sudo

Sep 25, 2010

I have an alias that I would like to use both as a regular user and as root, via sudo. Specifically, it is this:

alias rm=trash This works fine as a normal user, and it works fine when I use sudo -i to get a root shell prompt, but if I use sudo rm, the alias does not apply. So where do I need to put my alias so that it works in one-off sudo commands?

View 1 Replies View Related

Ubuntu :: How To Permanently Alias Command

Mar 6, 2010

My current alias'd commands are:

alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias ls='ls --color=auto'

I'd like to change 'ls' and add a few more, is there a command to permanently do that, or a config file I need to edit somewhere?

View 2 Replies View Related

Ubuntu :: Add A Local Domain Alias ?

Jun 28, 2010

Is there anyway we can add a local domain alias so that if we enter [url] in the browser it would point to [url]

In Windows XP I used to do it by editing the "hosts" file from the following directory

Code:

Code:

How do we do the same thing on Ubuntu 9.04?

View 2 Replies View Related

Ubuntu Servers :: Set Up An Alias Domain?

May 9, 2011

I set up a mailserver using this tutorial:[URL].. It works fine so far. I run this server for a small company with about 20 mailboxes where a address looks like that.[URL].. Now I want to set up an alias domain so that [URL].. also automatically is directed into the mailbox of "user".

View 1 Replies View Related

Programming :: Unable To Use An Alias In The Ksh Functions

Apr 4, 2011

I have problem to use an alias that defined in ksh93 script,in the functions in the same script onm Linux.I definied an alias in main: alias echo='echo -e' in order that echo will read backslashes but when i executed it in function, the alias didnt work, and performewd a regular echo, without -e

cat test.ksh
#!/bin/ksh
alias echo='echo -e'
checkUsage

[code]....

View 1 Replies View Related

General :: Alias To Run A Program In The Background?

Mar 4, 2011

I'm running Utorrent server and I figure I would create an alias to launch the program and run it in the background.alias utorrent='/home/user1/software/utorrent-server-3.0/utserver &'It seems to run the program but the associated webui program is flaky and won't start correctly.If I manually go to the specified path and run the command ./utserver & , I never seem to have an issue with the webui.I was wondering if this could possibly have anything to do with using the '&' ampersand operator in an alias.

View 2 Replies View Related

General :: How To Save Alias Permanent

Nov 5, 2009

how to save alias permanent

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved