02-05-2009
Add Static Routes to new physical address
Hi,
I need help to add new route:
10.252.0.138, GW 10.252.0.129 to e1000g1
and
10.252.0.10, GW 10.252.0.1 to e1000g2
tnx
10 More Discussions You Might Find Interesting
1. AIX
Hi all
I need command to give logical and physical IP Address for my machine.
thank you (1 Reply)
Discussion started by: magasem
1 Replies
2. AIX
I added a static route through smit using:
Communications applications and Services ==>
TCIP/IP ==>
Further Configuration ==>
Static Routes ==>
Add a Static Route ==>
Route Type of host
Filled in Destination Address, Default Gateway Address and Network Interface of en0.
This... (2 Replies)
Discussion started by: jyoung
2 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I have a Debian 5.0 server newly installed.
By default, the ip address is given by dhcp.
pegase:~# grep '^' /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
pegase:~# head -2 /etc/hosts
127.0.0.1 localhost
127.0.1.1 ... (1 Reply)
Discussion started by: chebarbudo
1 Replies
4. Solaris
Hello friend, I am new in UNIX, but I want to learn a lot
Well I have a problem to try to configure my PC with a static IP Address
(IP 192.168.1.39, Mask 255.255.255.0, gateway 192.168.1.1)
(DNS 200.48.225.130 and 200.48.225.146).
where are the file that I must be change?
The SO is Sun Solaris... (15 Replies)
Discussion started by: andresguillen
15 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I got one problem which I definetily no idea.
What would the physical address be for virtual address?
1) 2ABC
2) 3F4B
Here is the page table:see attached
Thank you sos sososososso much!! (0 Replies)
Discussion started by: lemon_06
0 Replies
6. Red Hat
Hi All,
Could you please explain the purpose of assigning the static IP by using the DHCP Concept. Like by using the clients MAC address we assign the static IP Address. Waiting for your reply. Thanks in Advance. (6 Replies)
Discussion started by: Sharath Kumar
6 Replies
7. SCO
Hi,
Just a question of thought. Why one needs to add static routes on Unix servers ? If I had ethernet card, it already has the settings for gateway for incoming and outgoing requests. We donot have to explicitly set the route it should take. Then what is the use... (3 Replies)
Discussion started by: dextergenious
3 Replies
8. Red Hat
Hi All,
Is there a quick way to check whether the current routes on my centos are
persistent or not before rebooting ?
i can take a route -n output but i may completely lost access to my server if the routes are gone.
thanks. (1 Reply)
Discussion started by: coolatt
1 Replies
9. IP Networking
Hi all,
I would need to register a random free subdomain address and associate that to my IP Address. Any suggestion of a good service?
Also I don't have a static IP but i remember that there are services that automatically reset the right IP address behind the subdomain but i don't remember... (1 Reply)
Discussion started by: Tameto
1 Replies
10. Red Hat
I have three systems A,B,C. I want to configure A in such a way that all packets from A to C goes via B.
I tried:
1. ip route add 'ip of C' via 'ip of B'
2. route add -net 'net address' netmask gw 'ip of B'
These commands work initially when I try a ping or traceroute and expire after... (2 Replies)
Discussion started by: kanak
2 Replies
LEARN ABOUT PHP
imagecolorclosest
IMAGECOLORCLOSEST(3) 1 IMAGECOLORCLOSEST(3)
imagecolorclosest - Get the index of the closest color to the specified color
SYNOPSIS
int imagecolorclosest (resource $image, int $red, int $green, int $blue)
DESCRIPTION
Returns the index of the color in the palette of the image which is "closest" to the specified RGB value.
The "distance" between the desired color and each color in the palette is calculated as if the RGB values represented points in three-
dimensional space.
If you created the image from a file, only colors used in the image are resolved. Colors present only in the palette are not resolved.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $red
-Value of red component.
o $green
-Value of green component.
o $blue
-Value of blue component.
The colors parameters are integers between 0 and 255 or hexadecimals between 0x00 and 0xFF.
RETURN VALUES
Returns the index of the closest color, in the palette of the image, to the specified one
EXAMPLES
Example #1
Search for a set of colors in an image
<?php
// Start with an image and convert it to a palette-based image
$im = imagecreatefrompng('figures/imagecolorclosest.png');
imagetruecolortopalette($im, false, 255);
// Search colors (RGB)
$colors = array(
array(254, 145, 154),
array(153, 145, 188),
array(153, 90, 145),
array(255, 137, 92)
);
// Loop through each search and find the closest color in the palette.
// Return the search number, the search RGB and the converted RGB match
foreach($colors as $id => $rgb)
{
$result = imagecolorclosest($im, $rgb[0], $rgb[1], $rgb[2]);
$result = imagecolorsforindex($im, $result);
$result = "({$result['red']}, {$result['green']}, {$result['blue']})";
echo "#$id: Search ($rgb[0], $rgb[1], $rgb[2]); Closest match: $result.
";
}
imagedestroy($im);
?>
The above example will output something similar to:
#0: Search (254, 145, 154); Closest match: (252, 150, 148).
#1: Search (153, 145, 188); Closest match: (148, 150, 196).
#2: Search (153, 90, 145); Closest match: (148, 90, 156).
#3: Search (255, 137, 92); Closest match: (252, 150, 92).
SEE ALSO
imagecolorexact(3), imagecolorclosestalpha(3), imagecolorclosesthwb(3).
PHP Documentation Group IMAGECOLORCLOSEST(3)