08-24-2012
Quote:
Originally Posted by
satish51392111
So, why do we need other interfaces?
To connect the server to multiple different LANs.
Quote:
We can create 255 virtual interfaces for a physical interface, so why do we need another physical interface if we can use a single interface?
Same as the above.
Quote:
Also, in case of disks, we scan and then identify the new disks in 'format' command output. In case of interfaces, is there is any way we do reconfiguration and then see unplumbed new interfaces?
dladm show-phys (Solaris 11) or
dladm show-dev on recent enough Solaris 10 releases. On older releases
prtpicl -c network -v
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
which network interface i must sellect during the solaris9 installation le0 or hme0 ?
this system is part of the network, it is a standalone system
and is not on any domain.
thanks for your help,
em (1 Reply)
Discussion started by: emsakopa
1 Replies
2. Solaris
Would anyone know why a V440 Solaris 9 machine's interfaces (ce0 and ce1)
will not failover?
Both interfaces are on the same subnet, but different IPs. I can pull the plug on once interface (ce0) and ce1 will be accessible. I can reverse it and pull ce1, and ce0 will NOT be accessible. ... (5 Replies)
Discussion started by: StorageGuy
5 Replies
3. Solaris
this is more of a curious question. I have a jumpstart server i imaged from a laptop. And in /etc/there are multiple hostname.ce0:1-2-3 etc.. entries. in that file each one has name similar to this jumpr_koc jumpr_poc etc.. Also i noticed my netmasks file has all the subnets we use. and finally my... (2 Replies)
Discussion started by: deaconf19
2 Replies
4. Solaris
I got second IOU in my M5000 but not able bring internal network interfcae .. ike i don't get link on those 2 interfaces .. and the same network cable plugged in PCI network card it works like a charm Is there any special way to enable the internal IOU interfaces or i have bad nics ? (8 Replies)
Discussion started by: fugitive
8 Replies
5. Solaris
Hello All,
I have a requirement to add multiple virtual interfaces on a non-global zone (Solaris 10). The global zone is a 2 node Veritas Cluster Server. So, my question is do we have to make any modifications to the cluster config (which I think should not be the case)? Can anyone help with me... (11 Replies)
Discussion started by: mahive
11 Replies
6. Linux
My setup consists of a hardware node, which hosts several virtual machines (OpenVZ, to be precise). The hardware node has two network interfaces (<ifA>, <ifB>) connected to different subnets (<networkA>, <networkB>). I want to route the traffic of certain VEs over <ifB> while routing the other VEs... (0 Replies)
Discussion started by: bakunin
0 Replies
7. UNIX Desktop Questions & Answers
Hi friends,
I am abit confused regarding these interfaces, hope you could clearify everything, and differentiate between them, with examples?
1. Graphical User Interface(GUI)
2. Text User Interface(TUI)
3. Character User Interface(CUI)
4. Commandline Interface(CLI)
5. Text-based User... (1 Reply)
Discussion started by: gabam
1 Replies
8. Solaris
Hi Guys,
I have a Netra240 server with four interfaces. However,
when I ran this command
dladm show-dev
it showed only one interface bge0. Can someone please explain to me how to fix this problem?
Thanks guys. (1 Reply)
Discussion started by: cjashu
1 Replies
9. UNIX for Dummies Questions & Answers
So after getting a Nagios plugin up and running that checks certain things including network interfaces, I get an error off the one box I built (as opposed to all of the others that were built by a former employee). The error complains of the "NIC logical group" failing.
All the boxes are HP... (7 Replies)
Discussion started by: xdawg
7 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have RH Linux system on which we have a 10Gb nic card that we want to configure multiple Virtual interfaces that are all tagged on the switch side.
Here is what I am trying to do, I want to have clients from different vlans that are truncked to be able to communicate with my RHEL... (1 Reply)
Discussion started by: new2prog
1 Replies
LEARN ABOUT CENTOS
shell-quote
SHELL-QUOTE(1) User Contributed Perl Documentation SHELL-QUOTE(1)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.16.3 2010-06-11 SHELL-QUOTE(1)